SharpLeaf Reference > TextBlock : PageElement Class > TextBlock Constructor > (String,FontType,Double,Double,Double,Double,Alignment,VerticalAlignment,Boolean)

TextBlock Constructor (String,FontType,Double,Double,Double,Double,Alignment,VerticalAlignment,Boolean)

Create a text to be drawn fixed-size along the specified line, with optional wrapping and alignment.

public TextBlock(
    string caption,
    FontType font,
    double xfrom,
    double yfrom,
    double xto,
    double yto,
    Alignment align,
    VerticalAlignment valign,
    bool wrap
);
caption
Text to be displayed.
font
Font to use.
xfrom
Start of line to draw text along (in points – positive from top/left of paper, negative from bottom/right).
yfrom
Start of line to draw text along (in points – positive from top/left of paper, negative from bottom/right).
xto
End of line to draw text along (in points – positive from top/left of paper, negative from bottom/right).

See also ...

TextBlock.Members | TextBlock.TextBlock Constructor


Send comments on this topic
© Dyalog Ltd 2021