VegaRise.NET
Back to DOM

AnchorValuesEnum

Definition

Namespace
DOM.Enums
Assembly
DOM.dll

Specifies what a floating element is anchored to (text, margins, or page).

Remarks

The anchor determines the reference frame that offsets and alignments are measured against. Used by and . PlacementPosition.HorizantalAnchor PlacementPosition.VerticalAnchor

Examples

csharp
1// 1. Anchor to the page
2var placement = new PlacementPosition { HorizantalAnchor = AnchorValues.Page };
3
csharp
1// 2. Anchor to the margins
2var placement = new PlacementPosition { HorizantalAnchor = AnchorValues.Margin };
3
csharp
1// 3. Anchor to the text
2var placement = new PlacementPosition { VerticalAnchor = AnchorValues.Text };
3
csharp
1// 4. Mixed anchors (page horizontally, margin vertically)
2var placement = new PlacementPosition
3{
4 HorizantalAnchor = AnchorValues.Page,
5 VerticalAnchor = AnchorValues.Margin
6};
7

Fields

Margin

Anchor to the page margins.

Page

Anchor to the page edges.

Text

Anchor to the surrounding text.

VegaRiseVDocs.NET

Reset Password

Enter your email and we'll send you a link to reset your password.

Remember your password? Sign in