SharpLeaf Reference > SharpLeaf Methods > GetTextHeight Method > (String,ParagraphStyle)

SharpLeaf.GetTextHeight Method (String,ParagraphStyle)

Measure paragraph width in current frame using specified ParagraphStyle.

public double GetTextHeight(
    string text,
    ParagraphStyle style
);
text
Text to measure, possibly including linebreaks.
style
ParagraphStyle to use for font and wrapping (current style by default).
return value
Measured height.

See also ...

SharpLeaf Members | SharpLeaf.GetTextHeight Method


Send comments on this topic
© Dyalog Ltd 2021