Class Label
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Inferno.UI.Controls
Assembly: Inferno.Desktop.dll
Syntax
public class Label : Control
Constructors
| Improve this Doc View SourceLabel(Vector2, String, Font)
Create a new Label without a background or border and with a default font color of black
Declaration
public Label(Vector2 position, string message, Font font)
Parameters
Type | Name | Description |
---|---|---|
Vector2 | position | |
System.String | message | |
Font | font |
Label(Vector2, String, Font, Color)
Create a new Label without a background or border
Declaration
public Label(Vector2 position, string message, Font font, Color textColor)
Parameters
Type | Name | Description |
---|---|---|
Vector2 | position | |
System.String | message | |
Font | font | |
Color | textColor |
Label(Vector2, String, Font, Color, Color, Color, Int32, Sprite)
Create a new Label
Declaration
public Label(Vector2 position, string text, Font font, Color textColor, Color backgroundColor, Color borderColor, int borderWidth = 1, Sprite backgroundImage = null)
Parameters
Type | Name | Description |
---|---|---|
Vector2 | position | |
System.String | text | |
Font | font | |
Color | textColor | |
Color | backgroundColor | |
Color | borderColor | |
System.Int32 | borderWidth | |
Sprite | backgroundImage |