Blink.GUI.Label.Label C# (CSharp) Method

Label() public method

public Label ( String text, SpriteFont font, Vector2 pos, Vector2 center = default(Vector2), Color color = null ) : System
text String
font Microsoft.Xna.Framework.Graphics.SpriteFont
pos Vector2
center Vector2
color Color
return System
        public Label(String text, SpriteFont font, Vector2 pos, Vector2 center = default(Vector2), Color? color = null)
        {
            this.pos = pos;
            this.center = center;
            this.text = text;
            this.font = font;
            this.color = color ?? Color.White;
        }