'Declaration Public Overloads Overrides Function MeasureString( _
ByVal textA text of string to measure.As System.String, _
ByVal fontThe font, which should be used for measuring text.As IDrawingFont _
) As System.Drawing.SizeF
public override System.Drawing.SizeF MeasureString(
System.String text,
IDrawingFont font
)
public: System.Drawing.SizeF* MeasureString(
System.String text,
IDrawingFont* font
); override
public:
System.Drawing.SizeF^ MeasureString(
System.String text,
IDrawingFont^ font
); override
Parameters
- text
- A text of string to measure.
- font
- The font, which should be used for measuring text.
Return Value
Returns a System.Drawing.SizeF structure that represents the size of the string specified by the text parameter as drawn with this font.