WordPageSetupFluent
OfficeIMO.Word
The fluent methods of WordPageSetup, 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
- WordPageSetupFluent
Methods
public static WordPageSetup DifferentFirstPage(WordPageSetup wordPageSetup, 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
- wordPageSetup OfficeIMO.Word.WordPageSetup
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
wordPageSetup.DifferentFirstPage = value; wordPageSetup.DifferentFirstPage(value);public static WordPageSetup DifferentOddAndEvenPages(WordPageSetup wordPageSetup, 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
- wordPageSetup OfficeIMO.Word.WordPageSetup
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
wordPageSetup.DifferentOddAndEvenPages = value; wordPageSetup.DifferentOddAndEvenPages(value);public static WordPageSetup EvenPageHeader(WordPageSetup wordPageSetup, Action<WordHeader> configure) #Configures WordPageSetup.EvenPageHeader in place: 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
- wordPageSetup OfficeIMO.Word.WordPageSetup
- The instance.
- configure System.Action<OfficeIMO.Word.WordHeader>
- Configures the value.
public static WordPageSetup FirstPageHeader(WordPageSetup wordPageSetup, Action<WordHeader> configure) #Configures WordPageSetup.FirstPageHeader in place: 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
- wordPageSetup OfficeIMO.Word.WordPageSetup
- The instance.
- configure System.Action<OfficeIMO.Word.WordHeader>
- Configures the value.
public static WordPageSetup Header(WordPageSetup wordPageSetup, Action<WordHeader> configure) #Configures WordPageSetup.Header in place: Gets the default header of the section, creating the default header and footer when missing.
Parameters
- wordPageSetup OfficeIMO.Word.WordPageSetup
- The instance.
- configure System.Action<OfficeIMO.Word.WordHeader>
- Configures the value.
public static WordPageSetup Margins(WordPageSetup wordPageSetup, Action<WordMargins> configure) #Configures WordPageSetup.Margins in place: Gets the page margins of the section.
Parameters
- wordPageSetup OfficeIMO.Word.WordPageSetup
- The instance.
- configure System.Action<OfficeIMO.Word.WordMargins>
- Configures the value.
public static WordPageSetup Orientation(WordPageSetup wordPageSetup, OfficePageOrientation value) #Sets WordPageSetup.Orientation: Gets or sets the page orientation of the section.
Parameters
- wordPageSetup OfficeIMO.Word.WordPageSetup
- The instance.
- value OfficeIMO.OfficePageOrientation
- The value.
Examples
// C# initializer or property // C# fluent
wordPageSetup.Orientation = value; wordPageSetup.Orientation(value);public static WordPageSetup Size(WordPageSetup wordPageSetup, Action<WordPageSizes> configure) #Configures WordPageSetup.Size in place: Gets the page size settings of the section.
Parameters
- wordPageSetup OfficeIMO.Word.WordPageSetup
- The instance.
- configure System.Action<OfficeIMO.Word.WordPageSizes>
- Configures the value.