SvgGraphicsMeasureString Method
Measures the specified string when drawn with the specified
FontInfo and formatted with the specified
StringOptions.
Namespace: SMath.DrawingAssembly: SMath.Drawing (in SMath.Drawing.dll) Version: 1.4.0.0
public SizeF MeasureString(
string text,
FontInfo font,
float width,
StringOptions format
)
Public Function MeasureString (
text As String,
font As FontInfo,
width As Single,
format As StringOptions
) As SizeF
public:
virtual SizeF MeasureString(
String^ text,
FontInfo^ font,
float width,
StringOptions^ format
) sealed
abstract MeasureString :
text : string *
font : FontInfo *
width : float32 *
format : StringOptions -> SizeF
override MeasureString :
text : string *
font : FontInfo *
width : float32 *
format : StringOptions -> SizeF
- text String
- String to measure.
- font FontInfo
- FontInfo that defines the text format of the string.
- width Single
- Maximum width of the string.
- format StringOptions
- StringOptions that represents formatting information, such as line spacing, for the string.
SizeF
Returns a
SizeF structure that represents the size, of the string specified in the
text parameter as drawn with the font parameter and the
StringOptions parameter.
IGraphicsMeasureString(String, FontInfo, Single, StringOptions)