SharpLeaf Reference > TextBlock : PageElement Class > Caption Property TextBlock.Caption Property
Text to draw.
public string Caption {get; set;}
Example
text.Caption = "Some Text";
Substitution Parameters
-
{page}
- Current page number (starting at 1)
-
{roman}
- Current page number in lower-case roman numerals
-
{ROMAN}
- Current page number in upper-case roman numerals
-
{pages}
- 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)
-
{1}..{99}
- 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 ...TextBlock.Members
Send comments on this topic © Dyalog Ltd 2021
|