Class Label
Represents a label display control in the user interface.
Assembly: MicroLayout.dll
View Source
public class Label : ThemedControl, IThemedControl, IControl
Inheritance: System.Object
-> Meadow.Foundation.Graphics.MicroLayout.Control
Implements:
Meadow.Foundation.Graphics.MicroLayout.IThemedControl
Properties
VerticalAlignment
Gets or sets the vertical alignment of the label text within the label display control.
View Source
public VerticalAlignment VerticalAlignment { get; set; }
HorizontalAlignment
Gets or sets the horizontal alignment of the label text within the label display control.
View Source
public HorizontalAlignment HorizontalAlignment { get; set; }
TextColor
Gets or sets the text color of the label text.
View Source
public Color TextColor { get; set; }
BackColor
Gets or sets the background color of the label display control.
View Source
public Color BackColor { get; set; }
Text
Gets or sets the text to be displayed on the label.
View Source
public string Text { get; set; }
Font
Gets or sets the font used for displaying the label text.
View Source
public IFont? Font { get; set; }
ScaleFactor
ScaleFactor used to calculate drawn text size
View Source
public ScaleFactor ScaleFactor { get; set; }
Methods
ApplyTheme(DisplayTheme)
Applies the specified display theme to the label display control.
View Source
public override void ApplyTheme(DisplayTheme theme)
Parameters
Type | Name | Description |
---|---|---|
Meadow.Foundation.Graphics.MicroLayout.DisplayTheme | theme | The display theme to apply. |
OnDraw(MicroGraphics)
Draws the label display control on the specified Meadow.Foundation.Graphics.MicroGraphics surface.
View Source
protected override void OnDraw(MicroGraphics graphics)
Parameters
Type | Name | Description |
---|---|---|
Meadow.Foundation.Graphics.MicroGraphics surface to draw the label display control on. |