Class ScrollingTextArea
Represents an auto-scrolling text area
Assembly: MicroLayout.dll
View Source
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
public int ItemSpacing { get; }
RowCount
Gets the number of rows shown
View Source
public int RowCount { get; }
DefaultRowColor
Gets or sets the default row text color
View Source
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
public override IControl? Parent { get; set; }
Methods
Clear()
Clears all rows in the control
View Source
public void Clear()
Add(string, Color?)
Adds a tew test item to the end/bottom of the control
View Source
public void Add(string message, Color? color = null)
Parameters
| Type | Name | Description |
|---|---|---|
System.String | message | The message to add |
System.Nullable<Meadow.Color> | color | The (optional) color for the row |
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)
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
protected override void OnDraw(MicroGraphics graphics)
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Foundation.Graphics.MicroGraphics | graphics | The Meadow.Foundation.Graphics.MicroGraphics surface to draw the control on. |