Measures the given text text by the given parameters.

Namespace:  SGP.XSpace
Assembly:  SGPRTL (in SGPRTL.dll)
Version: 1.2.3019.18825

Syntax

C#
[EditorBrowsableAttribute(EditorBrowsableState.Advanced)]
public Rectangle MeasureString(
	string text,
	Font font,
	DrawTextFormat format,
	Color color
)

Parameters

text
Type: System..::.String
Text to measure.
font
Type: System.Drawing..::.Font
The Font font type.
format
Type: DrawTextFormat
The DrawTextFormat text format defines way of displaying the text.
color
Type: System.Drawing..::.Color
Text color.

Return Value

Returns measured text size.

See Also