Skip to main content

Class ScrollingTextArea

Represents an auto-scrolling text area

Assembly: MicroLayout.dll​
View Source​
Declaration
public class ScrollingTextArea : LayoutBase, ILayout, IThemedControl, IControlContainer, IControl

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

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

Properties​

ItemSpacing​

Spacing, in pixels, between items

View Source​
Declaration
public int ItemSpacing { get; }

RowCount​

Gets the number of rows shown

View Source​
Declaration
public int RowCount { get; }

DefaultRowColor​

Gets or sets the default row text color

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

Parent​

Gets of sets the Control's Parent, if it has one. If the Control is unparented (i.e. Parent is null) then it is directly on the DisplayScreen

View Source​
Declaration
public override IControl? Parent { get; set; }

Methods​

Clear()​

Clears all rows in the control

View Source​
Declaration
public void Clear()

Add(string, Color?)​

Adds a tew test item to the end/bottom of the control

View Source​
Declaration
public void Add(string message, Color? color = null)
Parameters​
TypeNameDescription
System.StringmessageThe message to add
System.Nullable<Meadow.Color>colorThe (optional) color for the row

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)​

Performs the actual drawing of the control on the specified Meadow.Foundation.Graphics.MicroGraphics surface. This method must be implemented in derived classes.

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

Implements​