DrawGetStringWidth Method |
Gets the width of a string.
Namespace: Imsl.Chart2DAssembly: ImslCS (in ImslCS.dll) Version: 6.5.2.0
Syntax public static int GetStringWidth(
string target,
Font font
)
Public Shared Function GetStringWidth (
target As String,
font As Font
) As Integer
public:
static int GetStringWidth(
String^ target,
Font^ font
)
static member GetStringWidth :
target : string *
font : Font -> int
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