Font.MeasureString Method ()

Measures the rectangular dimensions of the specified text string when drawn with the specified Sprite object and formatted with the specified DrawTextFormat method of formatting text.

Overload List

public Rectangle MeasureString(Sprite, string, DrawTextFormat, Color);
public Rectangle MeasureString(Sprite, string, DrawTextFormat, int);