API Reference

Class

FooterSegment

Namespace OfficeIMO.Pdf
Assembly OfficeIMO.Pdf
Modifiers sealed

A segment of header or footer content, either literal text, styled text, or a page token.

Inheritance

  • Object
  • FooterSegment

Usage

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Constructors

public FooterSegment(FooterSegmentKind kind, String text = null) #

Creates a new footer segment.

Parameters

kind OfficeIMO.Pdf.FooterSegmentKind requiredposition: 0
text System.String = null optionalposition: 1

Methods

public static FooterSegment PageNumber(TextRun style) #
Returns: FooterSegment

Creates a current-page token using the supplied visual text style.

Parameters

style OfficeIMO.Pdf.TextRun requiredposition: 0
Text run whose visual styling is applied; its text is ignored.
public static FooterSegment RichText(TextRun run) #
Returns: FooterSegment

Creates a styled literal text segment.

Parameters

run OfficeIMO.Pdf.TextRun requiredposition: 0
Visual text run to render.
public static FooterSegment TotalPages(TextRun style) #
Returns: FooterSegment

Creates a total-pages token using the supplied visual text style.

Parameters

style OfficeIMO.Pdf.TextRun requiredposition: 0
Text run whose visual styling is applied; its text is ignored.

Properties

public FooterSegmentKind Kind { get; } #

Segment kind (text or token).

public String Text { get; } #

Literal text used when Kind is Text.

public TextRun StyledRun { get; } #

Optional visual styling for this segment.