SharpLeaf Reference > SharpLeaf Methods > GetTextWidth Method

SharpLeaf.GetTextWidth Method

Measure the width taken by a paragraph of text, interpreting newline characters (but not tab characters).

Overloads

Result

Measured width.

Example

   font = new FontType("Arial",24);
   width = lf.GetTextWidth("Hello world",font);

See also ...

SharpLeaf Members


Send comments on this topic
© Dyalog Ltd 2021