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.