Back to DOM
VerticalRelativePositionValuesEnum
Definition
- Namespace
- DOM.Enums
- Assembly
- DOM.dll
Specifies the reference frame used for vertical positioning of a floating element.
Remarks
Used by . Determines what the alignment or absolute Y offset is measured against. Position.VerticalRelativePosition
Examples
csharp
1// 1. Relative to the page
2var p = new Position { VerticalRelativePosition = VerticalRelativePositionValues.page };
3
csharp
1// 2. Relative to the margins
2var p = new Position { VerticalRelativePosition = VerticalRelativePositionValues.margin };
3
csharp
1// 3. Relative to the paragraph
2var p = new Position { VerticalRelativePosition = VerticalRelativePositionValues.paragraph };
3
csharp
1// 4. Relative to the line
2var p = new Position { VerticalRelativePosition = VerticalRelativePositionValues.line };
3
Fields
bottomMargin
Relative to the bottom margin.
insideMargin
Relative to the inside margin (facing pages).
line
Relative to the current line.
margin
Relative to the page margins.
none
No explicit reference frame.
outsideMargin
Relative to the outside margin (facing pages).
page
Relative to the page edges.
paragraph
Relative to the current paragraph.
topMargin
Relative to the top margin.