Skip to main content

Class DoubleLabel

Represents a two row label display control in the user interface.

Assembly: MicroLayout.dll​
View Source​
Declaration
public class DoubleLabel : ClickableControl, IThemedControl, IClickableControl, IControl

Inheritance: System.Object -> Meadow.Foundation.Graphics.MicroLayout.Control -> Meadow.Foundation.Graphics.MicroLayout.ThemedControl -> Meadow.Foundation.Graphics.MicroLayout.ClickableControl

Implements:
Meadow.Foundation.Graphics.MicroLayout.IThemedControl, Meadow.Foundation.Graphics.MicroLayout.IClickableControl, Meadow.Foundation.Graphics.MicroLayout.IControl

Properties​

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; }

BackgroundColor​

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

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

Text​

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

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

TextSecondary​

Gets or sets the 2nd row of text to be displayed on the label.

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

Font​

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

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

FontSecondary​

Gets or sets the font used for th displaying the 2nd row of label text.

View Source​
Declaration
public IFont? FontSecondary { 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.MicroGraphicsgraphicsThe Meadow.Foundation.Graphics.MicroGraphics surface to draw the label display control on.

Implements​