# WordPageSetupScope

Edits one WordPageSetup: its fluent methods and keywords, each returning this scope.

Class 

`OfficeIMO.Word`

**Namespace**

`OfficeIMO.Word`

**Assembly**

`OfficeIMO.Word`

**Modifiers**

sealed

Edits one [WordPageSetup](/api/word/officeimo-word-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](/api/word/officeimo-word-wordpagesetupscope/#method-differentfirstpage-boolean)
- Method [WordPageSetupScope.DifferentOddAndEvenPages](/api/word/officeimo-word-wordpagesetupscope/#method-differentoddandevenpages-boolean)
- Method [WordPageSetupScope.EvenPageFooter](/api/word/officeimo-word-wordpagesetupscope/#method-evenpagefooter-action-officeimo-word-wordfooterscope)
- Method [WordPageSetupScope.EvenPageHeader](/api/word/officeimo-word-wordpagesetupscope/#method-evenpageheader-action-officeimo-word-wordheaderscope)
- Method [WordPageSetupScope.FirstPageFooter](/api/word/officeimo-word-wordpagesetupscope/#method-firstpagefooter-action-officeimo-word-wordfooterscope)
- Method [WordPageSetupScope.FirstPageHeader](/api/word/officeimo-word-wordpagesetupscope/#method-firstpageheader-action-officeimo-word-wordheaderscope)
- Method [WordPageSetupScope.Footer](/api/word/officeimo-word-wordpagesetupscope/#method-footer-action-officeimo-word-wordfooterscope)
- Method [WordPageSetupScope.Header](/api/word/officeimo-word-wordpagesetupscope/#method-header-action-officeimo-word-wordheaderscope)
- Method [WordPageSetupScope.Margins](/api/word/officeimo-word-wordpagesetupscope/#method-margins-action-officeimo-word-wordmargins)
- Method [WordPageSetupScope.Orientation](/api/word/officeimo-word-wordpagesetupscope/#method-orientation-officeimo-officepageorientation)
- Method [WordPageSetupScope.Size](/api/word/officeimo-word-wordpagesetupscope/#method-size-action-officeimo-word-wordpagesizes)

### Accepted by parameters 2

- Method [WordDocumentScope.PageSetup](/api/word/officeimo-word-worddocumentscope/#method-pagesetup-action-officeimo-word-wordpagesetupscope) parameter `configure`
- Method [WordSectionScope.PageSetup](/api/word/officeimo-word-wordsectionscope/#method-pagesetup-action-officeimo-word-wordpagesetupscope) parameter `configure`

Filter members 

Show inherited

## Methods

`public WordPageSetupScope DifferentFirstPage(bool value = true)` [#](#method-differentfirstpage-boolean)

Sets [WordPageSetup.DifferentFirstPage](/api/word/officeimo-word-wordpagesetup/): 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)` [#](#method-differentoddandevenpages-boolean)

Sets [WordPageSetup.DifferentOddAndEvenPages](/api/word/officeimo-word-wordpagesetup/): 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)` [#](#method-evenpagefooter-action-officeimo-word-wordfooterscope)

Gets the even-page footer of the section. When it is missing, this enables [WordPageSetup.DifferentOddAndEvenPages](/api/word/officeimo-word-wordpagesetup/), 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)` [#](#method-evenpageheader-action-officeimo-word-wordheaderscope)

Gets the even-page header of the section. When it is missing, this enables [WordPageSetup.DifferentOddAndEvenPages](/api/word/officeimo-word-wordpagesetup/), 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)` [#](#method-firstpagefooter-action-officeimo-word-wordfooterscope)

Gets the first-page footer of the section. When it is missing, this enables [WordPageSetup.DifferentFirstPage](/api/word/officeimo-word-wordpagesetup/), 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)` [#](#method-firstpageheader-action-officeimo-word-wordheaderscope)

Gets the first-page header of the section. When it is missing, this enables [WordPageSetup.DifferentFirstPage](/api/word/officeimo-word-wordpagesetup/), 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 Footer(Action<WordFooterScope> configure)` [#](#method-footer-action-officeimo-word-wordfooterscope)

Gets the default footer of the section, creating the default header and footer when missing.

Parameters

**configure System.Action<OfficeIMO.Word.WordFooterScope> required**

Configures it through its scope.

Returns

`WordPageSetupScope` The same scope.

`public WordPageSetupScope Header(Action<WordHeaderScope> configure)` [#](#method-header-action-officeimo-word-wordheaderscope)

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)` [#](#method-margins-action-officeimo-word-wordmargins)

Configures [WordPageSetup.Margins](/api/word/officeimo-word-wordpagesetup/) 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)` [#](#method-orientation-officeimo-officepageorientation)

Sets [WordPageSetup.Orientation](/api/word/officeimo-word-wordpagesetup/): 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)` [#](#method-size-action-officeimo-word-wordpagesizes)

Configures [WordPageSetup.Size](/api/word/officeimo-word-wordpagesetup/) 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.

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public WordPageSetup Model { get; }` [#](#property-model)

The [WordPageSetup](/api/word/officeimo-word-wordpagesetup/) this scope edits, for plain C# inside a lambda.

<!-- PowerForge markdown artifact sha256:9B8FB3A9A56953CC9723F51167DBD4AB2ED699F94C09BAD7408CC0C3C97C4598 -->
