SharpPlot Reference > SharpPlot Methods > GetTextSize Method > (String,String,Double,Double)

SharpPlot.GetTextSize Method (String,String,Double,Double)

Get text width and height in points.

public double[] GetTextSize(
    string text,
    string fontName,
    double fontSize,
    double lineSpacing
);
text
text to measure (newlines are interpreted).
fontName
font face name.
fontSize
font size in points.
lineSpacing
line spacing (defaults to 1.2 for 20% line spacing).
return value
size of text as {width, height}.

See also ...

SharpPlot Members | SharpPlot.GetTextSize Method


Send comments on this topic
© Dyalog Ltd 2021