SharpLeaf Reference > SharpLeaf Methods > GetTextHeight Method > (String,ParagraphStyle,Double) SharpLeaf.GetTextHeight Method (String,ParagraphStyle,Double)
Measure the height taken by a paragraph of text, interpreting linebreaks, possibly wrapping inside a specified width.
public double GetTextHeight(
string text,
ParagraphStyle style,
double width
);
-
text
- Text to measure, possibly including linebreaks.
-
style
- ParagraphStyle to use for font and wrapping (current style by default).
-
width
- Width of the text wrapping (currently available frame width by default).
-
return value
- Measured height.
See also ...SharpLeaf Members | SharpLeaf.GetTextHeight Method
Send comments on this topic © Dyalog Ltd 2021
|