API Reference
HeaderTextBuilder
Builder for header text segments and page tokens.
Inheritance
- Object
- HeaderTextBuilder
Usage
Explore 17 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 5
- Method HeaderTextBuilder.CurrentPage
- Method HeaderTextBuilder.DocumentPages
- Method HeaderTextBuilder.Run
- Method HeaderTextBuilder.Text
- Method HeaderTextBuilder.TotalPages
Accepted by parameters 12
- Method PdfHeaderBuilder.EvenPagesStyledZones
- Method PdfHeaderBuilder.EvenPagesStyledZones
- Method PdfHeaderBuilder.EvenPagesStyledZones
- Method PdfHeaderBuilder.EvenPagesText
- Method PdfHeaderBuilder.FirstPageStyledZones
- Method PdfHeaderBuilder.FirstPageStyledZones
- Method PdfHeaderBuilder.FirstPageStyledZones
- Method PdfHeaderBuilder.FirstPageText
- Method PdfHeaderBuilder.StyledZones
- Method PdfHeaderBuilder.StyledZones
- Method PdfHeaderBuilder.StyledZones
- Method PdfHeaderBuilder.Text
Methods
public HeaderTextBuilder CurrentPage() #HeaderTextBuilderAdds a token that renders the current page number.
Returns
The same builder for chaining.
public HeaderTextBuilder CurrentPage(PdfTextRun style) #HeaderTextBuilderAdds a current-page token with the supplied visual text style.
Parameters
- style OfficeIMO.Pdf.PdfTextRun
- Text run whose visual styling is applied; its text is ignored.
Returns
The same builder for chaining.
public HeaderTextBuilder DocumentPages() #HeaderTextBuilderAdds the page count of the complete document, including all sections.
Returns
The same builder for chaining.
public HeaderTextBuilder DocumentPages(PdfTextRun style) #HeaderTextBuilderAdds a document-wide page-count token with the supplied visual text style.
Parameters
- style OfficeIMO.Pdf.PdfTextRun
- Text run whose visual styling is applied; its text is ignored.
Returns
The same builder for chaining.
public HeaderTextBuilder Run(PdfTextRun run) #HeaderTextBuilderAdds a visually styled text run to the header.
Parameters
- run OfficeIMO.Pdf.PdfTextRun
- Styled text to render. Interactive links, inline visuals, and paragraph tabs are not supported.
Returns
The same builder for chaining.
public HeaderTextBuilder Text(String s) #HeaderTextBuilderAdds a literal text segment to the header.
Parameters
- s System.String
- Text to render.
Returns
The same builder for chaining.
public HeaderTextBuilder TotalPages() #HeaderTextBuilderAdds a token that renders the total number of pages.
Returns
The same builder for chaining.
public HeaderTextBuilder TotalPages(PdfTextRun style) #HeaderTextBuilderAdds a total-pages token with the supplied visual text style.
Parameters
- style OfficeIMO.Pdf.PdfTextRun
- Text run whose visual styling is applied; its text is ignored.
Returns
The same builder for chaining.
Inherited Methods
public virtual Boolean Equals(Object? obj) #BooleanParameters
- obj Object?