Measures the specified text string when drawn with the current settings.
Namespace:
SGP.Baltie2DAssembly: SGPRTL (in SGPRTL.dll)
Version: 1.2.3019.18825
Syntax
C# |
---|
[EditorBrowsableAttribute(EditorBrowsableState.Advanced)] public SizeF MeasureString( string text, Font font, PointF origin, StringFormat stringFormat ) |
Parameters
- text
- Type: System..::.String
A string which will be measured.
- font
- Type: System.Drawing..::.Font
A font type Font.
- origin
- Type: System.Drawing..::.PointF
The upper-left corner of the text.
- stringFormat
- Type: System.Drawing..::.StringFormat
A string format StringFormat.