Measure string for this document.
'Declaration
Public Overloads Function MeasureString( _
ByVal As System.String, _
ByVal As Font, _
ByVal As System.Double, _
ByVal As StringFormat _
) As System.Windows.Size
public System.Windows.Size MeasureString(
System.string ,
Font ,
System.double ,
StringFormat
)
Parameters
- text
- The drawing string.
- font
- The drawing font.
- width
- The drawing width or -1 for default.
- sf
- The drawing string format.
Return Value
The size, in points, of the string specified as drawn with the font parameter.