MeasureString(String,TextFormat,Nullable<Single>) Method
Measures a string using a specified
GrapeCity.Documents.Text.TextFormat.
public System.Drawing.SizeF MeasureString(
System.string ,
TextFormat ,
System.Nullable<float>
)
'Declaration
Public Overloads Function MeasureString( _
ByVal As System.String, _
ByVal As TextFormat, _
Optional ByVal As System.Nullable(Of Single) _
) As System.Drawing.SizeF
Parameters
- text
- The string to measure.
- textFormat
- The text format to use.
- width
- The width allocated to draw the string, or null to indicate unlimited width.
Return Value
The size needed to draw the string.