Back to DOM
PageBorderDisplayValuesEnum
Definition
- Namespace
- DOM.Enums
- Assembly
- DOM.dll
Specifies on which pages a page border is displayed.
Remarks
Used by . When set to or, the border is only drawn on the corresponding pages; when, it is drawn on every page. PageBorders.DisplayValues firstPage notFirstPage allPages
Examples
csharp
1// 1. All pages
2var pb = new PageBorders { DisplayValues = PageBorderDisplayValues.allPages };
3
csharp
1// 2. First page only
2var pb = new PageBorders { DisplayValues = PageBorderDisplayValues.firstPage };
3
csharp
1// 3. All pages except the first
2var pb = new PageBorders { DisplayValues = PageBorderDisplayValues.notFirstPage };
3
csharp
1// 4. Decorative cover border
2var pb = new PageBorders
3{
4 DisplayValues = PageBorderDisplayValues.firstPage,
5 Top = new BorderStyle { BorderValue = BorderValues.apples }
6};
7
Fields
allPages
Display on all pages.
firstPage
Display on the first page only.
notFirstPage
Display on all pages except the first.