WordFooterScope
OfficeIMO.Word
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.
Returned or exposed by 10
- Method WordFooterScope.Bookmark
- Method WordFooterScope.Field
- Method WordFooterScope.Fields
- Method WordFooterScope.HorizontalLine
- Method WordFooterScope.HyperLink
- Method WordFooterScope.List
- Method WordFooterScope.PageNumber
- Method WordFooterScope.Paragraph
- Method WordFooterScope.Paragraphs
- Method WordFooterScope.Table
Accepted by parameters 5
- Method WordDocumentScope.Footer
- Method WordPageSetupScope.EvenPageFooter
- Method WordPageSetupScope.FirstPageFooter
- Method WordPageSetupScope.Footer
- Method WordSectionScope.Footer
Methods
public WordFooterScope Bookmark(string bookmarkName, Action<WordBookmarkScope>? configure = null) #Adds a bookmark at the current location.
Parameters
- bookmarkName string
- Name of the bookmark.
- configure System.Action<OfficeIMO.Word.WordBookmarkScope>? = null
- Configures the new item through its scope.
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
- The item.
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
- Type of field to insert.
- wordFieldFormat OfficeIMO.Word.WordFieldFormat? = null
- Optional field format.
- customFormat string? = null
- Custom format string for date or time fields.
- advanced bool = false
- Whether to use advanced formatting.
- configure System.Action<OfficeIMO.Word.WordFieldScope>? = null
- Configures the new item through its 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
- Field code instance.
- wordFieldFormat OfficeIMO.Word.WordFieldFormat? = null
- Optional field format.
- customFormat string? = null
- Custom format string for date or time fields.
- advanced bool = false
- Whether to use advanced formatting.
- configure System.Action<OfficeIMO.Word.WordFieldScope>? = null
- Configures the new item through its scope.
public WordFooterScope Field(WordFieldBuilder builder, bool advanced = false, Action<WordFieldScope>? configure = null) #Inserts a field constructed with WordFieldBuilder.
Parameters
- builder OfficeIMO.Word.WordFieldBuilder
- Field builder instance.
- advanced bool = false
- Whether to use advanced formatting.
- configure System.Action<OfficeIMO.Word.WordFieldScope>? = null
- Configures the new item through its 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>
- The items, in order.
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
- Border style of the line.
- color OfficeIMO.OfficeColor? = null
- Color of the line.
- size uint = 12
- Thickness of the line.
- space uint = 1
- Spacing above and below the line.
- configure System.Action<OfficeIMO.Word.WordParagraphScope>? = null
- Configures the new item through its scope.
public WordFooterScope HyperLink(string text, Uri uri, bool addStyle = false, string tooltip = "", bool history = true, Action<WordHyperLinkScope>? configure = null) #Adds a hyperlink pointing to an external URI.
Parameters
- text string
- Display text for the hyperlink.
- uri System.Uri
- Destination URI.
- addStyle bool = false
- Whether to apply hyperlink style.
- tooltip string = ""
- Tooltip text for the link.
- history bool = true
- Whether to mark the link as visited.
- configure System.Action<OfficeIMO.Word.WordHyperLinkScope>? = null
- Configures the new item through its scope.
public WordFooterScope HyperLink(string text, string anchor, bool addStyle = false, string tooltip = "", bool history = true, Action<WordHyperLinkScope>? configure = null) #Adds an internal hyperlink to a bookmark within the document.
Parameters
- text string
- Display text for the hyperlink.
- anchor string
- Bookmark to link to.
- addStyle bool = false
- Whether to apply hyperlink style.
- tooltip string = ""
- Tooltip text for the link.
- history bool = true
- Whether to mark the link as visited.
- configure System.Action<OfficeIMO.Word.WordHyperLinkScope>? = null
- Configures the new item through its scope.
public WordFooterScope List(WordListStyle style, Action<WordListScope>? configure = null) #Creates a list with the specified style.
Parameters
- style OfficeIMO.Word.WordListStyle
- List style to apply.
- configure System.Action<OfficeIMO.Word.WordListScope>? = null
- Configures the new item through its scope.
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
- Style of the page number to insert.
- configure System.Action<OfficeIMO.Word.WordPageNumberScope>? = null
- Configures the new item through its 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
- Include total pages in the display.
- format OfficeIMO.Word.WordFieldFormat? = null
- Optional number format.
- separator string = " of "
- Separator used when total pages are included.
- configure System.Action<OfficeIMO.Word.WordParagraphScope>? = null
- Configures the new item through its scope.
public WordFooterScope Paragraph(Action<WordParagraphScope> configure) #Adds a paragraph to the footer and composes it.
Parameters
- configure System.Action<OfficeIMO.Word.WordParagraphScope>
- Adds text runs and formats the paragraph.
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
- The item.
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
- Paragraph text.
- configure System.Action<OfficeIMO.Word.WordParagraphScope>? = null
- Configures the new item through its 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>
- The items, in order.
public WordFooterScope Table(Action<WordTableBuilder> compose) #Adds a table composed row by row to the footer.
Parameters
- compose System.Action<OfficeIMO.Word.WordTableBuilder>
- Sets the columns, header row and rows.
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
- Number of rows.
- columns int
- Number of columns.
- tableStyle OfficeIMO.Word.WordTableStyle = TableGrid
- Table style to apply.
- configure System.Action<OfficeIMO.Word.WordTableScope>? = null
- Configures the new item through its scope.
Inherited Methods
Properties
public WordFooter Model { get; } #The WordFooter this scope edits, for plain C# inside a lambda.