Back to DOM
PageNumberLocationEnum
Definition
- Namespace
- DOM.Enums
- Assembly
- DOM.dll
Specifies whether a page number appears in the header or the footer.
Remarks
A simple helper enum for scenarios where the page number can be placed in one of two standard locations.
Examples
csharp
1// 1. Page number in the header
2var loc = PageNumberLocation.Header;
3
csharp
1// 2. Page number in the footer
2var loc = PageNumberLocation.Footer;
3
csharp
1// 3. Add to the header
2if (loc == PageNumberLocation.Header) { doc.Header.PageNumber = pn; }
3
csharp
1// 4. Add to the footer
2if (loc == PageNumberLocation.Footer) { doc.Footer.PageNumber = pn; }
3