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

Fields

Footer

Page number appears in the footer.

Header

Page number appears in the header.

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.