# WordPageNumberFluent

The fluent methods of WordPageNumber, 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 [WordPageNumber](/api/word/officeimo-word-wordpagenumber/), 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
- WordPageNumberFluent

Filter members 

Show inherited

## Methods

`public static TSelf CustomFormat<TSelf>(TSelf wordPageNumber, string value)` [#](#method-customformat-string)

Sets [WordPageNumber.CustomFormat](/api/word/officeimo-word-wordpagenumber/): Gets or sets the custom format of the page number field.

Type Parameters

**TSelf**

Parameters

**wordPageNumber TSelf required**

The instance.

**value string required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property           // C# fluent
wordPageNumber.CustomFormat = value;    wordPageNumber.CustomFormat(value);
```

`public static TSelf Field<TSelf>(TSelf wordPageNumber, Action<WordField> configure)` [#](#method-field-action-officeimo-word-wordfield)

Configures [WordPageNumber.Field](/api/word/officeimo-word-wordpagenumber/) in place: Gets the underlying field representing the page number.

Type Parameters

**TSelf**

Parameters

**wordPageNumber TSelf required**

The instance.

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

Configures the value.

Returns

`TSelf` The same instance.

`public static TSelf ParagraphAlignment<TSelf>(TSelf wordPageNumber, WordParagraphAlignment? value)` [#](#method-paragraphalignment-nullable-officeimo-word-wordparagraphalignment)

Sets [WordPageNumber.ParagraphAlignment](/api/word/officeimo-word-wordpagenumber/): Gets or sets the alignment of the page-number paragraph.

Type Parameters

**TSelf**

Parameters

**wordPageNumber TSelf required**

The instance.

**value OfficeIMO.Word.WordParagraphAlignment? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                 // C# fluent
wordPageNumber.ParagraphAlignment = value;    wordPageNumber.ParagraphAlignment(value);
```

`public static TSelf Paragraph<TSelf>(TSelf wordPageNumber, Action<WordParagraph> configure)` [#](#method-paragraph-action-officeimo-word-wordparagraph)

Configures [WordPageNumber.Paragraph](/api/word/officeimo-word-wordpagenumber/) in place: Gets the primary paragraph containing the page number field.

Type Parameters

**TSelf**

Parameters

**wordPageNumber TSelf required**

The instance.

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

Configures the value.

Returns

`TSelf` 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:579335871AAAF538823F4047988D27605AB5BF3E57A802B96BD1D92D662D95C8 -->
