Measures the specified string that is drawn with the specified Font object.

Namespace:  PerpetuumSoft.Framework.Utilities
Assembly:  PerpetuumSoft.Framework (in PerpetuumSoft.Framework.dll) Version: 3.9.0.1

Syntax

C#
public static Vector MeasureText(
	string text,
	Font font
)
Visual Basic (Declaration)
Public Shared Function MeasureText ( _
	text As String, _
	font As Font _
) As Vector
Visual C++
public:
static Vector MeasureText(
	String^ text, 
	Font^ font
)

Parameters

text
Type: System..::.String
font
Type: System.Drawing..::.Font

See Also