PdfPageSetupFluent
OfficeIMO.Pdf
The fluent methods of PdfPageSetup, generated from its public properties: A property-named method sets a property and a singular-named method adds to a collection, both returning the same instance.
Inheritance
- object
- PdfPageSetupFluent
Methods
public static PdfPageSetup DifferentFirstPage(PdfPageSetup pdfPageSetup, bool value = true) #Sets PdfPageSetup.DifferentFirstPage: When true, page 1 of each section uses PdfPageSetup.FirstPageHeader and PdfPageSetup.FirstPageFooter.
Parameters
- pdfPageSetup OfficeIMO.Pdf.PdfPageSetup
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
pdfPageSetup.DifferentFirstPage = value; pdfPageSetup.DifferentFirstPage(value);public static PdfPageSetup DifferentOddAndEvenPages(PdfPageSetup pdfPageSetup, bool value = true) #Sets PdfPageSetup.DifferentOddAndEvenPages: When true, even pages use PdfPageSetup.EvenPageHeader and PdfPageSetup.EvenPageFooter.
Parameters
- pdfPageSetup OfficeIMO.Pdf.PdfPageSetup
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
pdfPageSetup.DifferentOddAndEvenPages = value; pdfPageSetup.DifferentOddAndEvenPages(value);public static PdfPageSetup Margins(PdfPageSetup pdfPageSetup, PdfPageMargins margins) #Sets all four margins from a reusable value, such as PdfPageMargins.Moderate.
Parameters
- pdfPageSetup OfficeIMO.Pdf.PdfPageSetup
- The instance.
- margins OfficeIMO.Pdf.PdfPageMargins
- The value.
public static PdfPageSetup MirrorMargins(PdfPageSetup pdfPageSetup, bool value = true) #Sets PdfPageSetup.MirrorMargins: Swaps the left and right margins on even visible page numbers. Numbering starts and restarts determine parity.
Parameters
- pdfPageSetup OfficeIMO.Pdf.PdfPageSetup
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
pdfPageSetup.MirrorMargins = value; pdfPageSetup.MirrorMargins(value);public static PdfPageSetup Orientation(PdfPageSetup pdfPageSetup, OfficePageOrientation value) #Sets PdfPageSetup.Orientation: Gets or sets the page orientation. Setting it swaps the page width and height when needed.
Parameters
- pdfPageSetup OfficeIMO.Pdf.PdfPageSetup
- The instance.
- value OfficeIMO.OfficePageOrientation
- The value.
Examples
// C# initializer or property // C# fluent
pdfPageSetup.Orientation = value; pdfPageSetup.Orientation(value);public static PdfPageSetup Size(PdfPageSetup pdfPageSetup, PdfPageSize value) #Sets PdfPageSetup.Size: Gets or sets the page size. Default is Letter (612 by 792 points).
Parameters
- pdfPageSetup OfficeIMO.Pdf.PdfPageSetup
- The instance.
- value OfficeIMO.Pdf.PdfPageSize
- The value.
Examples
// C# initializer or property // C# fluent
pdfPageSetup.Size = value; pdfPageSetup.Size(value);public static PdfPageSetup UseVisiblePageNumberParity(PdfPageSetup pdfPageSetup, bool value = true) #Sets PdfPageSetup.UseVisiblePageNumberParity: Uses visible page-number parity for odd/even headers, footers and watermarks. First-page variants still refer to the first physical page of each section. The default uses section-relative page parity.
Parameters
- pdfPageSetup OfficeIMO.Pdf.PdfPageSetup
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
pdfPageSetup.UseVisiblePageNumberParity = value; pdfPageSetup.UseVisiblePageNumberParity(value);