Class Label
The Label element of a view file: text, with optional fill and border.
public class Label : Control
- Inheritance
-
Label
- Inherited Members
Properties
Alignment
How the text is aligned within the label. Left by default.
[EnumDataType(typeof(Label.Alignment))]
public Label.Alignment Alignment { get; set; }
Property Value
BorderColor
The color of a border drawn around the label's bounds. Independent of FillColor.
public string BorderColor { get; set; }
Property Value
BorderThickness
The border's width in pixels. Has no effect unless BorderColor is set. One by default.
[Range(0, 2147483647)]
public int BorderThickness { get; set; }
Property Value
Color
The color of the text.
public string Color { get; set; }
Property Value
FillColor
A flat fill drawn behind the text.
public string FillColor { get; set; }
Property Value
FillGradient
A gradient fill drawn behind the text, naming a Gradient resource. Drawn in place of
FillColor when both are set.
public string FillGradient { get; set; }
Property Value
Font
The font for the text: a BMFont (.fnt) or TrueType (.ttf/.otf) file.
public string Font { get; set; }
Property Value
FontSize
The point size of the text. 18 by default.
public float FontSize { get; set; }
Property Value
LetterSpacing
Extra space between glyphs, in pixels. Zero adds none.
public float LetterSpacing { get; set; }
Property Value
Size
The label's size in pixels.
public Size Size { get; set; }
Property Value
SizeValue
The Size attribute's text form. See Size.
public string SizeValue { get; set; }
Property Value
Text
The text shown. A "{Localize key}" shows that key's text in the current language.
public string Text { get; set; }
Property Value
WrapText
Whether the text wraps onto further lines when it is wider than the label.
public bool WrapText { get; set; }