WordPageSetupScope
OfficeIMO.Word
Edits one WordPageSetup: its fluent methods and keywords, each returning this scope.
Inheritance
- object
- WordPageSetupScope
Usage
Explore 13 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 11
- Method WordPageSetupScope.DifferentFirstPage
- Method WordPageSetupScope.DifferentOddAndEvenPages
- Method WordPageSetupScope.EvenPageFooter
- Method WordPageSetupScope.EvenPageHeader
- Method WordPageSetupScope.FirstPageFooter
- Method WordPageSetupScope.FirstPageHeader
- Method WordPageSetupScope.Footer
- Method WordPageSetupScope.Header
- Method WordPageSetupScope.Margins
- Method WordPageSetupScope.Orientation
- Method WordPageSetupScope.Size
Accepted by parameters 2
- Method WordDocumentScope.PageSetup
- Method WordSectionScope.PageSetup
Methods
public WordPageSetupScope DifferentFirstPage(bool value = true) #Sets WordPageSetup.DifferentFirstPage: 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.
Parameters
- value bool = true
- The value; true when omitted.
public WordPageSetupScope DifferentOddAndEvenPages(bool value = true) #Sets WordPageSetup.DifferentOddAndEvenPages: 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.
Parameters
- value bool = true
- The value; true when omitted.
public WordPageSetupScope EvenPageHeader(Action<WordHeaderScope> configure) #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.
Parameters
- configure System.Action<OfficeIMO.Word.WordHeaderScope>
- Configures it through its scope.
public WordPageSetupScope FirstPageHeader(Action<WordHeaderScope> configure) #Gets the first-page header of the section. When it is missing, this enables WordPageSetup.DifferentFirstPage, which creates the first-page header and footer.
Parameters
- configure System.Action<OfficeIMO.Word.WordHeaderScope>
- Configures it through its scope.
public WordPageSetupScope Header(Action<WordHeaderScope> configure) #Gets the default header of the section, creating the default header and footer when missing.
Parameters
- configure System.Action<OfficeIMO.Word.WordHeaderScope>
- Configures it through its scope.
public WordPageSetupScope Margins(Action<WordMargins> configure) #Configures WordPageSetup.Margins in place: Gets the page margins of the section.
Parameters
- configure System.Action<OfficeIMO.Word.WordMargins>
- Configures the value.
public WordPageSetupScope Orientation(OfficePageOrientation value) #Sets WordPageSetup.Orientation: Gets or sets the page orientation of the section.
Parameters
- value OfficeIMO.OfficePageOrientation
- The value.
public WordPageSetupScope Size(Action<WordPageSizes> configure) #Configures WordPageSetup.Size in place: Gets the page size settings of the section.
Parameters
- configure System.Action<OfficeIMO.Word.WordPageSizes>
- Configures the value.
Inherited Methods
Properties
public WordPageSetup Model { get; } #The WordPageSetup this scope edits, for plain C# inside a lambda.