SharpLeaf Reference > TextBlock : PageElement Class TextBlock : PageElement Class
Arbitrary text to add to a page layout, with optional parameters substitution. Text can optionally be wrapped, and angled if the two points are different, in which case it is drawn along the given line.
public class TextBlock : PageElement
Constructors
- 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);
TextBlock Instance PropertiesAlignment | Horizontal positioning of text along target line (default is Left) | Caption | Text to draw | Font | Font properties for text (name, size, pitch, style, color) | VerticalAlignment | Vertical positioning of text against target line (default is Baseline) | Wrap | Enable text wrapping around baseline (default is true) |
TextBlock Methods
RequirementsNamespace: Causeway Assembly: SharpPlot (in sharpplot.dll)
Send comments on this topic © Dyalog Ltd 2021
|