Click or drag to resize
DrawGetStringWidth Method
Gets the width of a string.

Namespace: Imsl.Chart2D
Assembly: ImslCS (in ImslCS.dll) Version: 6.5.2.0
Syntax
public static int GetStringWidth(
	string target,
	Font font
)

Parameters

target
Type: SystemString
A string to measure.
font
Type: System.DrawingFont
A Font object that defines the text format of the string.

Return Value

Type: Int32
An int that represents the size, in pixels, of the string specified by target as drawn with font.
See Also