SpriteBatch.DrawString

Draws a string

Allows special formatting rules: [c=(HEX)] to change the color [c=clear] to clear colors

  1. void DrawString(SpriteFont font, dstring text, Vector2 position, Color color, float scale, float zlayer, Shader textShader)
  2. void DrawString(SpriteFont font, string utf8text, Vector2 position, Color color, float scale, float zlayer, Shader textShader)
    class SpriteBatch
    void
    DrawString
    (,
    string utf8text
    ,
    Vector2 position
    ,,
    float scale = 1f
    ,
    float zlayer = 0f
    ,)
  3. void DrawString(SpriteFont font, wstring utf16text, Vector2 position, Color color, float scale, float zlayer, Shader textShader)

Meta