IMSL C# Numerical Library

Draw.GetStringWidth Method 

Gets the width of a string.

public static int GetStringWidth(
   string target,
   Font font
);

Parameters

target
A string to measure.
font
A Font object that defines the text format of the string.

Return Value

An int that represents the size, in pixels, of the string specified by target as drawn with font.

See Also

Draw Class | Imsl.Chart2D Namespace