Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

WordPageSetupScope

OfficeIMO.Word

Namespace
OfficeIMO.Word
Assembly
OfficeIMO.Word
Modifiers
sealed

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.

Accepted by parameters 2

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

Returns

WordPageSetupScope The same scope.
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 optional
The value; true when omitted.

Returns

WordPageSetupScope The same scope.
public WordPageSetupScope EvenPageFooter(Action<WordFooterScope> configure) #

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

configure System.Action<OfficeIMO.Word.WordFooterScope> required
Configures it through its scope.

Returns

WordPageSetupScope The same scope.
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> required
Configures it through its scope.

Returns

WordPageSetupScope The same scope.
public WordPageSetupScope FirstPageFooter(Action<WordFooterScope> configure) #

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

configure System.Action<OfficeIMO.Word.WordFooterScope> required
Configures it through its scope.

Returns

WordPageSetupScope The same 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> required
Configures it through its scope.

Returns

WordPageSetupScope The same 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> required
Configures it through its scope.

Returns

WordPageSetupScope The same 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> required
Configures the value.

Returns

WordPageSetupScope The same scope.
public WordPageSetupScope Orientation(OfficePageOrientation value) #

Sets WordPageSetup.Orientation: Gets or sets the page orientation of the section.

Parameters

value OfficeIMO.OfficePageOrientation required
The value.

Returns

WordPageSetupScope The same scope.
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> required
Configures the value.

Returns

WordPageSetupScope The same scope.

Properties

public WordPageSetup Model { get; } #

The WordPageSetup this scope edits, for plain C# inside a lambda.