Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
DrawString Method

SpriteBatch.DrawString Method

Adds a sprite string to the batch of sprites to be rendered.

NameDescription
SpriteBatch.DrawString (SpriteFont, String, Vector2, Color)Adds a sprite string to the batch of sprites to be rendered, specifying the font, output text, screen position, and color tint.
SpriteBatch.DrawString (SpriteFont, String, Vector2, Color, Single, Vector2, Single, SpriteEffects, Single)Adds a sprite string to the batch of sprites to be rendered, specifying the font, output text, screen position, color tint, rotation, origin, scale, and effects.
SpriteBatch.DrawString (SpriteFont, String, Vector2, Color, Single, Vector2, Vector2, SpriteEffects, Single)Adds a sprite string to the batch of sprites to be rendered, specifying the font, output text, screen position, color tint, rotation, origin, scale, effects, and depth.

Community Additions

ADD
Show:
© 2015 Microsoft