# WordPageNumberScope

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

Class 

`OfficeIMO.Word`

**Namespace**

`OfficeIMO.Word`

**Assembly**

`OfficeIMO.Word`

**Modifiers**

sealed

Edits one [WordPageNumber](/api/word/officeimo-word-wordpagenumber/): its fluent methods and keywords, each returning this scope.

## Inheritance

- object
- WordPageNumberScope

## Usage

Explore 6 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 4

- Method [WordPageNumberScope.CustomFormat](/api/word/officeimo-word-wordpagenumberscope/#method-customformat-string)
- Method [WordPageNumberScope.Field](/api/word/officeimo-word-wordpagenumberscope/#method-field-action-officeimo-word-wordfield)
- Method [WordPageNumberScope.Paragraph](/api/word/officeimo-word-wordpagenumberscope/#method-paragraph-action-officeimo-word-wordparagraph)
- Method [WordPageNumberScope.ParagraphAlignment](/api/word/officeimo-word-wordpagenumberscope/#method-paragraphalignment-nullable-officeimo-word-wordparagraphalignment)

### Accepted by parameters 2

- Method [WordFooterScope.PageNumber](/api/word/officeimo-word-wordfooterscope/#method-pagenumber-officeimo-word-wordpagenumberstyle-action-officeimo-word-wordpagenumberscope) parameter `configure`
- Method [WordHeaderScope.PageNumber](/api/word/officeimo-word-wordheaderscope/#method-pagenumber-officeimo-word-wordpagenumberstyle-action-officeimo-word-wordpagenumberscope) parameter `configure`

Filter members 

Show inherited

## Methods

`public WordPageNumberScope CustomFormat(string value)` [#](#method-customformat-string)

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

Parameters

**value string required**

The value.

Returns

`WordPageNumberScope` The same scope.

`public WordPageNumberScope Field(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.

Parameters

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

Configures the value.

Returns

`WordPageNumberScope` The same scope.

`public WordPageNumberScope Paragraph(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.

Parameters

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

Configures the value.

Returns

`WordPageNumberScope` The same scope.

`public WordPageNumberScope ParagraphAlignment(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.

Parameters

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

The value.

Returns

`WordPageNumberScope` 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 WordPageNumber Model { get; }` [#](#property-model)

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

<!-- PowerForge markdown artifact sha256:1FD275CD2A6EEE16553B67A1F364347B5CBA99D08CB6F598E327C5323A931795 -->
