Skip to main content

Class Label

Represents a label display control in the user interface.

Assembly: MicroLayout.dll​
View Source​
Declaration
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​
Declaration
public VerticalAlignment VerticalAlignment { get; set; }

HorizontalAlignment​

Gets or sets the horizontal alignment of the label text within the label display control.

View Source​
Declaration
public HorizontalAlignment HorizontalAlignment { get; set; }

TextColor​

Gets or sets the text color of the label text.

View Source​
Declaration
public Color TextColor { get; set; }

BackColor​

Gets or sets the background color of the label display control.

View Source​
Declaration
public Color BackColor { get; set; }

Text​

Gets or sets the text to be displayed on the label.

View Source​
Declaration
public string Text { get; set; }

Font​

Gets or sets the font used for displaying the label text.

View Source​
Declaration
public IFont? Font { get; set; }

ScaleFactor​

ScaleFactor used to calculate drawn text size

View Source​
Declaration
public ScaleFactor ScaleFactor { get; set; }

Methods​

ApplyTheme(DisplayTheme)​

Applies the specified display theme to the label display control.

View Source​
Declaration
public override void ApplyTheme(DisplayTheme theme)
Parameters​
TypeNameDescription
Meadow.Foundation.Graphics.MicroLayout.DisplayThemethemeThe display theme to apply.

OnDraw(MicroGraphics)​

Draws the label display control on the specified Meadow.Foundation.Graphics.MicroGraphics surface.

View Source​
Declaration
protected override void OnDraw(MicroGraphics graphics)
Parameters​
TypeNameDescription
Meadow.Foundation.Graphics.MicroGraphics surface to draw the label display control on.

Implements​