Font.MeasureString

Font.MeasureString method

Measures the string.

public double MeasureString(string str, float fontSize)
ParameterTypeDescription
strStringThe string.
fontSizeSingleFont size.

Return Value

Width of the string represented with this font and the specified size.

See Also