# WordPageSetupFluent

The fluent methods of WordPageSetup, generated from its public properties: A property-named method sets a property and a singular-named method adds…

Class 

`OfficeIMO.Word`

**Namespace**

`OfficeIMO.Word`

**Assembly**

`OfficeIMO.Word`

**Modifiers**

static

The fluent methods of [WordPageSetup](/api/word/officeimo-word-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

Filter members 

Show inherited

## Methods

`public static WordPageSetup DifferentFirstPage(WordPageSetup wordPageSetup, bool value = true)` [#](#method-differentfirstpage-officeimo-word-wordpagesetup-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

**wordPageSetup OfficeIMO.Word.WordPageSetup required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`WordPageSetup` The same instance.

Examples

```csharp
// C# initializer or property                // C# fluent
wordPageSetup.DifferentFirstPage = value;    wordPageSetup.DifferentFirstPage(value);
```

`public static WordPageSetup DifferentOddAndEvenPages(WordPageSetup wordPageSetup, bool value = true)` [#](#method-differentoddandevenpages-officeimo-word-wordpagesetup-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

**wordPageSetup OfficeIMO.Word.WordPageSetup required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`WordPageSetup` The same instance.

Examples

```csharp
// C# initializer or property                      // C# fluent
wordPageSetup.DifferentOddAndEvenPages = value;    wordPageSetup.DifferentOddAndEvenPages(value);
```

`public static WordPageSetup EvenPageFooter(WordPageSetup wordPageSetup, Action<WordFooter> configure)` [#](#method-evenpagefooter-officeimo-word-wordpagesetup-action-officeimo-word-wordfooter)

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

**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)` [#](#method-evenpageheader-officeimo-word-wordpagesetup-action-officeimo-word-wordheader)

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

**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)` [#](#method-firstpagefooter-officeimo-word-wordpagesetup-action-officeimo-word-wordfooter)

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

**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)` [#](#method-firstpageheader-officeimo-word-wordpagesetup-action-officeimo-word-wordheader)

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

**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 Footer(WordPageSetup wordPageSetup, Action<WordFooter> configure)` [#](#method-footer-officeimo-word-wordpagesetup-action-officeimo-word-wordfooter)

Configures [WordPageSetup.Footer](/api/word/officeimo-word-wordpagesetup/) in place: Gets the default footer of the section, creating the default header and footer when missing.

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 Header(WordPageSetup wordPageSetup, Action<WordHeader> configure)` [#](#method-header-officeimo-word-wordpagesetup-action-officeimo-word-wordheader)

Configures [WordPageSetup.Header](/api/word/officeimo-word-wordpagesetup/) 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)` [#](#method-margins-officeimo-word-wordpagesetup-action-officeimo-word-wordmargins)

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

Sets [WordPageSetup.Orientation](/api/word/officeimo-word-wordpagesetup/): 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

```csharp
// C# initializer or property         // C# fluent
wordPageSetup.Orientation = value;    wordPageSetup.Orientation(value);
```

`public static WordPageSetup Size(WordPageSetup wordPageSetup, Action<WordPageSizes> configure)` [#](#method-size-officeimo-word-wordpagesetup-action-officeimo-word-wordpagesizes)

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

## 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?`

<!-- PowerForge markdown artifact sha256:719606C6FA9B18492C523FA52648B6587FB9159AE2A7FC04F06C0DE1C3A382DB -->
