SpriteFont.MeasureString Method
Returns the width and height of a string.
Overload List
Name | Description |
---|---|
SpriteFont.MeasureString (String) | Returns the width and height of a string as a Vector2. |
SpriteFont.MeasureString (StringBuilder) | Returns the width and height of a string as a Vector2. |
See Also
Reference
SpriteFont Class
SpriteFont Members
Microsoft.Xna.Framework.Graphics Namespace