Class DoubleLabel
Represents a two row label display control in the user interface.
Assembly: MicroLayout.dll
View Source
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
public HorizontalAlignment HorizontalAlignment { get; set; }
TextColor
Gets or sets the text color of the label text.
View Source
public Color TextColor { get; set; }
BackgroundColor
Gets or sets the background color of the label display control.
View Source
public Color BackgroundColor { get; set; }
Text
Gets or sets the text to be displayed on the label.
View Source
public string Text { get; set; }
TextSecondary
Gets or sets the 2nd row of text to be displayed on the label.
View Source
public string TextSecondary { get; set; }
Font
Gets or sets the font used for displaying the label text.
View Source
public IFont? Font { get; set; }
FontSecondary
Gets or sets the font used for th displaying the 2nd row of label text.
View Source
public IFont? FontSecondary { 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 | graphics | The Meadow.Foundation.Graphics.MicroGraphics surface to draw the label display control on. |