Measures the specified text string when drawn with the current settings.

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

Syntax

C#
[EditorBrowsableAttribute(EditorBrowsableState.Advanced)]
public SizeF MeasureString(
	string text,
	Font font,
	SizeF layoutArea,
	StringFormat stringFormat,
	out int charactersFitted,
	out int linesFilled
)

Parameters

text
Type: System..::.String
A string which will be measured.
font
Type: System.Drawing..::.Font
A font type Font.
layoutArea
Type: System.Drawing..::.SizeF
The maximum allowed area size SizeF of the text.
stringFormat
Type: System.Drawing..::.StringFormat
A string format StringFormat.
charactersFitted
Type: System..::.Int32 %
Number of characters in the text string.
linesFilled
Type: System..::.Int32 %
Number of text lines in the text string.

Return Value

Returns the area size SizeF.

See Also