Skip to main content

Class Box

Represents a rectangular display box in the user interface.

Assembly: MicroLayout.dll
View Source
public class Box : ThemedControl, IThemedControl, IControl

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

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

Properties

IsFilled

Gets or sets a value indicating whether the display box is filled with the foreground color.

View Source
public bool IsFilled { get; set; }

ForeColor

Gets or sets the foreground color of the display box.

View Source
public Color ForeColor { get; set; }

Methods

ApplyTheme(DisplayTheme)

Applies the specified display theme to the display box.

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

OnDraw(MicroGraphics)

Draws the display box on the specified Meadow.Foundation.Graphics.MicroGraphics surface.

View Source
protected override void OnDraw(MicroGraphics graphics)
Parameters
TypeNameDescription
Meadow.Foundation.Graphics.MicroGraphicsgraphicsThe Meadow.Foundation.Graphics.MicroGraphics surface to draw the display box on.

Implements