WordPageSetup
OfficeIMO.Word
Page size, margins, orientation and running headers and footers of one section.
Inheritance
- object
- WordPageSetup
Remarks
The setup is a view over the section's properties; it holds no state of its own. WordPageSetup.Header, WordPageSetup.Footer and their first-page and even-page variants create the requested story when it is missing. Use WordPageSetup.GetHeader and WordPageSetup.GetFooter to inspect a story without creating it.
Usage
Explore 2 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 2
- Property WordDocument.PageSetup
- Property WordSection.PageSetup
Methods
Inherited Methods
Properties
public OfficePageOrientation Orientation { get; set; } #Gets or sets the page orientation of the section.
public bool DifferentFirstPage { get; set; } #Gets or sets whether the first page of the section uses its own header and footer. Setting the value to true also creates the first-page header and footer when they are missing.
public bool DifferentOddAndEvenPages { get; set; } #Gets whether this section has an explicit or inherited even-page header or footer while the document-wide odd/even setting is enabled. Setting the value to true creates even-page references for this section and enables that setting; setting it to false disables the document-wide setting.
public WordHeader Header { get; } #Gets the default header of the section, creating the default header and footer when missing.
public WordHeader FirstPageHeader { get; } #Gets the first-page header of the section. When it is missing, this enables WordPageSetup.DifferentFirstPage, which creates the first-page header and footer.
public WordHeader EvenPageHeader { get; } #Gets the even-page header of the section. When it is missing, this enables WordPageSetup.DifferentOddAndEvenPages, which creates the even-page header and footer and turns on the document-wide odd/even setting.