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.