Class ScrollingTextArea
Represents an auto-scrolling text area
Assembly: MicroLayout.dll
View Source
Declaration
public class ScrollingTextArea : MicroLayout, IThemedControl, IControl
Inheritance: System.Object
-> Meadow.Foundation.Graphics.MicroLayout.Control
Implements:
Meadow.Foundation.Graphics.MicroLayout.IThemedControl
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; }
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
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 control.
View Source
Declaration
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
Declaration
protected override void OnDraw(MicroGraphics graphics)
Parameters
Type | Name | Description |
---|---|---|
Meadow.Foundation.Graphics.MicroGraphics surface to draw the control on. |