Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

WordPageSetupFluent

OfficeIMO.Word

Namespace
OfficeIMO.Word
Assembly
OfficeIMO.Word
Modifiers
static

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 required
The instance.
value bool = true optional
The value; true when omitted.

Returns

WordPageSetup The same instance.

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 required
The instance.
value bool = true optional
The value; true when omitted.

Returns

WordPageSetup The same instance.

Examples

// C# initializer or property                      // C# fluent
wordPageSetup.DifferentOddAndEvenPages = value;    wordPageSetup.DifferentOddAndEvenPages(value);
public static WordPageSetup EvenPageFooter(WordPageSetup wordPageSetup, Action<WordFooter> configure) #

Configures WordPageSetup.EvenPageFooter in place: Gets the even-page footer 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 required
The instance.
configure System.Action<OfficeIMO.Word.WordFooter> required
Configures the value.

Returns

WordPageSetup The same instance.
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 required
The instance.
configure System.Action<OfficeIMO.Word.WordHeader> required
Configures the value.

Returns

WordPageSetup The same instance.
public static WordPageSetup FirstPageFooter(WordPageSetup wordPageSetup, Action<WordFooter> configure) #

Configures WordPageSetup.FirstPageFooter in place: Gets the first-page footer of the section. When it is missing, this enables WordPageSetup.DifferentFirstPage, which creates the first-page header and footer.

Parameters

wordPageSetup OfficeIMO.Word.WordPageSetup required
The instance.
configure System.Action<OfficeIMO.Word.WordFooter> required
Configures the value.

Returns

WordPageSetup The same instance.
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 required
The instance.
configure System.Action<OfficeIMO.Word.WordHeader> required
Configures the value.

Returns

WordPageSetup The same instance.
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 required
The instance.
configure System.Action<OfficeIMO.Word.WordHeader> required
Configures the value.

Returns

WordPageSetup The same instance.
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 required
The instance.
configure System.Action<OfficeIMO.Word.WordMargins> required
Configures the value.

Returns

WordPageSetup The same instance.
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 required
The instance.
value OfficeIMO.OfficePageOrientation required
The value.

Returns

WordPageSetup The same instance.

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 required
The instance.
configure System.Action<OfficeIMO.Word.WordPageSizes> required
Configures the value.

Returns

WordPageSetup The same instance.