# WordFooterScope

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

Class 

`OfficeIMO.Word`

**Namespace**

`OfficeIMO.Word`

**Assembly**

`OfficeIMO.Word`

**Source revision**

`105ae88c45f6` with working tree changes

**Source**

[WordScopes.cs:121](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.Word/Scopes/WordScopes.cs#L121)

**Modifiers**

sealed

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

## Inheritance

- object
- WordFooterScope

## Usage

Explore 15 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 10

- Method [WordFooterScope.Bookmark](/api/word/officeimo-word-wordfooterscope/#method-bookmark-string-action-officeimo-word-wordbookmarkscope)
- Method [WordFooterScope.Field](/api/word/officeimo-word-wordfooterscope/#method-field-officeimo-word-wordfieldbuilder-boolean-action-officeimo-word-wordfieldscope)
- Method [WordFooterScope.Fields](/api/word/officeimo-word-wordfooterscope/#method-fields-collections-generic-ienumerable-officeimo-word-wordfield)
- Method [WordFooterScope.HorizontalLine](/api/word/officeimo-word-wordfooterscope/#method-horizontalline-nullable-officeimo-word-wordborderstyle-nullable-officeimo-officecolor-uint32-uint32-action-officeimo-word-wordparagraphscope)
- Method [WordFooterScope.HyperLink](/api/word/officeimo-word-wordfooterscope/#method-hyperlink-string-uri-boolean-string-boolean-action-officeimo-word-wordhyperlinkscope)
- Method [WordFooterScope.List](/api/word/officeimo-word-wordfooterscope/#method-list-officeimo-word-wordliststyle-action-officeimo-word-wordlistscope)
- Method [WordFooterScope.PageNumber](/api/word/officeimo-word-wordfooterscope/#method-pagenumber-officeimo-word-wordpagenumberstyle-action-officeimo-word-wordpagenumberscope)
- Method [WordFooterScope.Paragraph](/api/word/officeimo-word-wordfooterscope/#method-paragraph-string-action-officeimo-word-wordparagraphscope)
- Method [WordFooterScope.Paragraphs](/api/word/officeimo-word-wordfooterscope/#method-paragraphs-collections-generic-ienumerable-officeimo-word-wordparagraph)
- Method [WordFooterScope.Table](/api/word/officeimo-word-wordfooterscope/#method-table-action-officeimo-word-wordtablebuilder)

### Accepted by parameters 5

- Method [WordDocumentScope.Footer](/api/word/officeimo-word-worddocumentscope/#method-footer-action-officeimo-word-wordfooterscope) parameter `configure`
- Method [WordPageSetupScope.EvenPageFooter](/api/word/officeimo-word-wordpagesetupscope/#method-evenpagefooter-action-officeimo-word-wordfooterscope) parameter `configure`
- Method [WordPageSetupScope.FirstPageFooter](/api/word/officeimo-word-wordpagesetupscope/#method-firstpagefooter-action-officeimo-word-wordfooterscope) parameter `configure`
- Method [WordPageSetupScope.Footer](/api/word/officeimo-word-wordpagesetupscope/#method-footer-action-officeimo-word-wordfooterscope) parameter `configure`
- Method [WordSectionScope.Footer](/api/word/officeimo-word-wordsectionscope/#method-footer-action-officeimo-word-wordfooterscope) parameter `configure`

Filter members 

Show inherited

## Methods

`public WordFooterScope Bookmark(string bookmarkName, Action<WordBookmarkScope>? configure = null)` [#](#method-bookmark-string-action-officeimo-word-wordbookmarkscope)

Adds a bookmark at the current location.

Parameters

**bookmarkName string required**

Name of the bookmark.

**configure System.Action<OfficeIMO.Word.WordBookmarkScope>? = null optional**

Configures the new item through its scope.

Returns

`WordFooterScope` The same scope.

Field 4 overloads

`public WordFooterScope Field(WordField item)` [#](#method-field-officeimo-word-wordfield)

Adds an item to [WordHeaderFooter.Fields](/api/word/officeimo-word-wordheaderfooter/): Gets the fields contained in the header or footer.

Parameters

**item OfficeIMO.Word.WordField required**

The item.

Returns

`WordFooterScope` The same scope.

`public WordFooterScope Field(WordFieldType wordFieldType, WordFieldFormat? wordFieldFormat = null, string? customFormat = null, bool advanced = false, Action<WordFieldScope>? configure = null)` [#](#method-field-officeimo-word-wordfieldtype-nullable-officeimo-word-wordfieldformat-string-boolean-action-officeimo-word-wordfieldscope)

Adds a field to the header or footer.

Parameters

**wordFieldType OfficeIMO.Word.WordFieldType required**

Type of field to insert.

**wordFieldFormat OfficeIMO.Word.WordFieldFormat? = null optional**

Optional field format.

**customFormat string? = null optional**

Custom format string for date or time fields.

**advanced bool = false optional**

Whether to use advanced formatting.

**configure System.Action<OfficeIMO.Word.WordFieldScope>? = null optional**

Configures the new item through its scope.

Returns

`WordFooterScope` The same scope.

`public WordFooterScope Field(WordFieldCode fieldCode, WordFieldFormat? wordFieldFormat = null, string? customFormat = null, bool advanced = false, Action<WordFieldScope>? configure = null)` [#](#method-field-officeimo-word-wordfieldcode-nullable-officeimo-word-wordfieldformat-string-boolean-action-officeimo-word-wordfieldscope)

Inserts a field represented by a [WordFieldCode](/api/word/officeimo-word-wordfieldcode/).

Parameters

**fieldCode OfficeIMO.Word.WordFieldCode required**

Field code instance.

**wordFieldFormat OfficeIMO.Word.WordFieldFormat? = null optional**

Optional field format.

**customFormat string? = null optional**

Custom format string for date or time fields.

**advanced bool = false optional**

Whether to use advanced formatting.

**configure System.Action<OfficeIMO.Word.WordFieldScope>? = null optional**

Configures the new item through its scope.

Returns

`WordFooterScope` The same scope.

`public WordFooterScope Field(WordFieldBuilder builder, bool advanced = false, Action<WordFieldScope>? configure = null)` [#](#method-field-officeimo-word-wordfieldbuilder-boolean-action-officeimo-word-wordfieldscope)

Inserts a field constructed with [WordFieldBuilder](/api/word/officeimo-word-wordfieldbuilder/).

Parameters

**builder OfficeIMO.Word.WordFieldBuilder required**

Field builder instance.

**advanced bool = false optional**

Whether to use advanced formatting.

**configure System.Action<OfficeIMO.Word.WordFieldScope>? = null optional**

Configures the new item through its scope.

Returns

`WordFooterScope` The same scope.

`public WordFooterScope Fields(IEnumerable<WordField> items)` [#](#method-fields-collections-generic-ienumerable-officeimo-word-wordfield)

Adds items to [WordHeaderFooter.Fields](/api/word/officeimo-word-wordheaderfooter/): Gets the fields contained in the header or footer.

Parameters

**items System.Collections.Generic.IEnumerable<OfficeIMO.Word.WordField> required**

The items, in order.

Returns

`WordFooterScope` The same scope.

`public WordFooterScope HorizontalLine(WordBorderStyle? lineType = null, OfficeColor? color = null, uint size = 12, uint space = 1, Action<WordParagraphScope>? configure = null)` [#](#method-horizontalline-nullable-officeimo-word-wordborderstyle-nullable-officeimo-officecolor-uint32-uint32-action-officeimo-word-wordparagraphscope)

Adds a horizontal line to the header or footer.

Parameters

**lineType OfficeIMO.Word.WordBorderStyle? = null optional**

Border style of the line.

**color OfficeIMO.OfficeColor? = null optional**

Color of the line.

**size uint = 12 optional**

Thickness of the line.

**space uint = 1 optional**

Spacing above and below the line.

**configure System.Action<OfficeIMO.Word.WordParagraphScope>? = null optional**

Configures the new item through its scope.

Returns

`WordFooterScope` The same scope.

HyperLink 2 overloads

`public WordFooterScope HyperLink(string text, Uri uri, bool addStyle = false, string tooltip = "", bool history = true, Action<WordHyperLinkScope>? configure = null)` [#](#method-hyperlink-string-uri-boolean-string-boolean-action-officeimo-word-wordhyperlinkscope)

Adds a hyperlink pointing to an external URI.

Parameters

**text string required**

Display text for the hyperlink.

**uri System.Uri required**

Destination URI.

**addStyle bool = false optional**

Whether to apply hyperlink style.

**tooltip string = "" optional**

Tooltip text for the link.

**history bool = true optional**

Whether to mark the link as visited.

**configure System.Action<OfficeIMO.Word.WordHyperLinkScope>? = null optional**

Configures the new item through its scope.

Returns

`WordFooterScope` The same scope.

`public WordFooterScope HyperLink(string text, string anchor, bool addStyle = false, string tooltip = "", bool history = true, Action<WordHyperLinkScope>? configure = null)` [#](#method-hyperlink-string-string-boolean-string-boolean-action-officeimo-word-wordhyperlinkscope)

Adds an internal hyperlink to a bookmark within the document.

Parameters

**text string required**

Display text for the hyperlink.

**anchor string required**

Bookmark to link to.

**addStyle bool = false optional**

Whether to apply hyperlink style.

**tooltip string = "" optional**

Tooltip text for the link.

**history bool = true optional**

Whether to mark the link as visited.

**configure System.Action<OfficeIMO.Word.WordHyperLinkScope>? = null optional**

Configures the new item through its scope.

Returns

`WordFooterScope` The same scope.

`public WordFooterScope List(WordListStyle style, Action<WordListScope>? configure = null)` [#](#method-list-officeimo-word-wordliststyle-action-officeimo-word-wordlistscope)

Creates a list with the specified style.

Parameters

**style OfficeIMO.Word.WordListStyle required**

List style to apply.

**configure System.Action<OfficeIMO.Word.WordListScope>? = null optional**

Configures the new item through its scope.

Returns

`WordFooterScope` The same scope.

PageNumber 2 overloads

`public WordFooterScope PageNumber(WordPageNumberStyle wordPageNumberStyle, Action<WordPageNumberScope>? configure = null)` [#](#method-pagenumber-officeimo-word-wordpagenumberstyle-action-officeimo-word-wordpagenumberscope)

Adds a page number to this footer using the specified style.

Parameters

**wordPageNumberStyle OfficeIMO.Word.WordPageNumberStyle required**

Style of the page number to insert.

**configure System.Action<OfficeIMO.Word.WordPageNumberScope>? = null optional**

Configures the new item through its scope.

Returns

`WordFooterScope` The same scope.

`public WordFooterScope PageNumber(bool includeTotalPages = false, WordFieldFormat? format = null, string separator = " of ", Action<WordParagraphScope>? configure = null)` [#](#method-pagenumber-boolean-nullable-officeimo-word-wordfieldformat-string-action-officeimo-word-wordparagraphscope)

Inserts a page number field.

Parameters

**includeTotalPages bool = false optional**

Include total pages in the display.

**format OfficeIMO.Word.WordFieldFormat? = null optional**

Optional number format.

**separator string = " of " optional**

Separator used when total pages are included.

**configure System.Action<OfficeIMO.Word.WordParagraphScope>? = null optional**

Configures the new item through its scope.

Returns

`WordFooterScope` The same scope.

Paragraph 3 overloads

`public WordFooterScope Paragraph(Action<WordParagraphScope> configure)` [#](#method-paragraph-action-officeimo-word-wordparagraphscope)

[WordScopes.cs:121](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.Word/Scopes/WordScopes.cs#L121)

Adds a paragraph to the footer and composes it.

Parameters

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

Adds text runs and formats the paragraph.

Returns

`WordFooterScope` The same scope.

`public WordFooterScope Paragraph(WordParagraph item)` [#](#method-paragraph-officeimo-word-wordparagraph)

Adds an item to [WordHeaderFooter.Paragraphs](/api/word/officeimo-word-wordheaderfooter/): Gets all paragraphs contained in the header or footer.

Parameters

**item OfficeIMO.Word.WordParagraph required**

The item.

Returns

`WordFooterScope` The same scope.

`public WordFooterScope Paragraph(string text, Action<WordParagraphScope>? configure = null)` [#](#method-paragraph-string-action-officeimo-word-wordparagraphscope)

Adds a new paragraph with the specified text to the header or footer.

Parameters

**text string required**

Paragraph text.

**configure System.Action<OfficeIMO.Word.WordParagraphScope>? = null optional**

Configures the new item through its scope.

Returns

`WordFooterScope` The same scope.

`public WordFooterScope Paragraphs(IEnumerable<WordParagraph> items)` [#](#method-paragraphs-collections-generic-ienumerable-officeimo-word-wordparagraph)

Adds items to [WordHeaderFooter.Paragraphs](/api/word/officeimo-word-wordheaderfooter/): Gets all paragraphs contained in the header or footer.

Parameters

**items System.Collections.Generic.IEnumerable<OfficeIMO.Word.WordParagraph> required**

The items, in order.

Returns

`WordFooterScope` The same scope.

Table 2 overloads

`public WordFooterScope Table(Action<WordTableBuilder> compose)` [#](#method-table-action-officeimo-word-wordtablebuilder)

[WordScopes.cs:130](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.Word/Scopes/WordScopes.cs#L130)

Adds a table composed row by row to the footer.

Parameters

**compose System.Action<OfficeIMO.Word.WordTableBuilder> required**

Sets the columns, header row and rows.

Returns

`WordFooterScope` The same scope.

`public WordFooterScope Table(int rows, int columns, WordTableStyle tableStyle = TableGrid, Action<WordTableScope>? configure = null)` [#](#method-table-int32-int32-officeimo-word-wordtablestyle-action-officeimo-word-wordtablescope)

Creates a table and appends it to the header or footer.

Parameters

**rows int required**

Number of rows.

**columns int required**

Number of columns.

**tableStyle OfficeIMO.Word.WordTableStyle = TableGrid optional**

Table style to apply.

**configure System.Action<OfficeIMO.Word.WordTableScope>? = null optional**

Configures the new item through its scope.

Returns

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

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

<!-- PowerForge markdown artifact sha256:722777B60C2C4A70388C9F01AFEB1FC224283D3FC380CED752ACF408E8DF51C8 -->
