VegaRise.NET
HomeAPI Reference
Back to DOM

PageBorderOffsetValuesEnum

Definition

Namespace
DOM.Enums
Assembly
DOM.dll

Specifies the reference frame used for the border offset.

Remarks

Used by . Determines whether the border offset is measured from the page edges or from the text area. PageBorders.OffsetFrom

Examples

csharp
1// 1. Offset from the page
2var pb = new PageBorders { OffsetFrom = PageBorderOffsetValues.Page };
3
csharp
1// 2. Offset from the text
2var pb = new PageBorders { OffsetFrom = PageBorderOffsetValues.Text };
3
csharp
1// 3. Border aligned with the text area
2var pb = new PageBorders
3{
4 OffsetFrom = PageBorderOffsetValues.Text,
5 Top = new BorderStyle { BorderValue = BorderValues.Single, BorderSpace = 4 }
6};
7
csharp
1// 4. Border aligned with the page edge
2var pb = new PageBorders
3{
4 OffsetFrom = PageBorderOffsetValues.Page,
5 Left = new BorderStyle { BorderValue = BorderValues.Single, BorderSpace = 24 }
6};
7

Fields

Page

Offset measured from the page edge.

Text

Offset measured from the text area.