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

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