'Declaration Public Overloads Overridable Function MeasureString( _
ByVal textA text of string to measure.As DrawingString, _
ByVal fontThe font, which should be used for measuring text.As IDrawingFont _
) As System.Drawing.SizeF
public virtual System.Drawing.SizeF MeasureString(
DrawingString text,
IDrawingFont font
)
public: virtual System.Drawing.SizeF* MeasureString(
DrawingString* text,
IDrawingFont* font
)
public:
virtual System.Drawing.SizeF^ MeasureString(
DrawingString^ text,
IDrawingFont^ font
)
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.