Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

WordFooterScope

OfficeIMO.Word

Namespace
OfficeIMO.Word
Assembly
OfficeIMO.Word
Source revision
22fb5b2be3d2 with working tree changes
Modifiers
sealed

Edits one 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.

Accepted by parameters 5

Methods

public WordFooterScope Bookmark(string bookmarkName, Action<WordBookmarkScope>? configure = null) #

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) #

Adds an item to WordHeaderFooter.Fields: 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) #

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) #

Inserts a field represented by a 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) #

Inserts a field constructed with 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) #

Adds items to WordHeaderFooter.Fields: 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) #

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 List(WordListStyle style, Action<WordListScope>? configure = null) #

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) #

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) #

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) #

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) #

Adds an item to WordHeaderFooter.Paragraphs: 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) #

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) #

Adds items to WordHeaderFooter.Paragraphs: 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) #

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) #

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.

Properties

public WordFooter Model { get; } #

The WordFooter this scope edits, for plain C# inside a lambda.