VegaRise.NET
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.

VegaRise.NET

Sign In

Welcome back. Please sign in to your account.

Forgot password?
or

Don't have an account? Create an account

By signing in, you agree to our Terms of Service and Privacy Policy.