SharpLeaf Reference > TextBlock : PageElement Class > TextBlock Constructor TextBlock Constructor
Create a text to be drawn fixed-size along the specified line, with optional wrapping and alignment.
Overloads
- public TextBlock(string caption, FontType font, double xfrom, double yfrom);
- public TextBlock(string caption, FontType font, double xfrom, double yfrom, double xto, double yto);
- public TextBlock(string caption,FontType font,double xfrom,double yfrom,double xto,double yto,Alignment align,VerticalAlignment valign,bool wrap);
Example
// Create a footer note with page counter, one inch from page bottom
font = new FontType("Arial",10,FontStyle.Bold,Color.Gray);
text = new TextBlock("Footer note - page {page}/{pages}",font,72,-72,-72,-72,
Alignment.Center,VerticalAlignment.Bottom,true);
page.Add(text);
See also ...TextBlock.Members
Send comments on this topic © Dyalog Ltd 2021
|