SharpLeaf Reference > TextBlock : PageElement Class > Caption Property

TextBlock.Caption Property

Text to draw.

public string Caption {get; set;}


text.Caption = "Some Text";

Substitution Parameters

Current page number (starting at 1)
Current page number in lower-case roman numerals
Current page number in upper-case roman numerals
Total number of pages
{time} {time,FMT}
Current time, with optional format (e.g. HH:mm)
{date} {date,FMT}
Current date, with optional format (e.g. yyyy-MM-dd)
Custom arguments as set by SharpLeaf.ArgumentList

If these keywords need to be used as text, the closing braces can be escaped with a backslash, so that “\}” renders as “}”.

See also ...


Send comments on this topic
© Dyalog Ltd 2021