Returns the size of the text if drawn with the given font for given Graphics.

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

Syntax

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

See Also