PeachPDF

PeachPDF.Layout

ITextSpanContainer Interface

Builds a paragraph out of individually-styled runs of text (Text(Action<ITextSpanContainer>)).

public interface ITextSpanContainer
Methods  
Alignment(TextAlignment) Sets this paragraph’s text alignment.
CurrentPageNumber() Appends the current page number. Only resolves inside Header(Action<IContainer>)/ Footer(Action<IContainer>) content - elsewhere it renders as an empty span, since a page number has no meaning outside repeating per-page content.
Element(Action<IContainer>) Inserts arbitrary container content (an image, a styled box, ...) inline between the surrounding text spans.
PageNumberWithinSection(string) Appends the current page number counted from the start of the page-numbered section sectionId (see BeginPageNumberOfSection(string)) - 1 on the section’s own first page, 2 on its second, and so on. Only resolves inside Header(Action<IContainer>)/Footer(Action<IContainer>) content, the same as CurrentPageNumber().
Span(string) Appends a run of text and returns its style, for chaining.
TotalPages() Appends the document’s total page count. Only resolves inside Header(Action<IContainer>)/ Footer(Action<IContainer>) content - elsewhere it renders as an empty span, since a page count has no meaning outside repeating per-page content.
TotalPagesWithinSection(string) Appends the total page count of the page-numbered section sectionId - see PageNumberWithinSection(string).