Class ScrollTextBufferLineAddedEvent
Event published by a ScrollTextBuffer each time a new line of text is appended to the buffer. Consumers can use this to refresh displays or track buffer growth.
Inherited Members
Namespace: Scylla.Core.Util.UI
Assembly: ScyllaCore.dll
Syntax
public sealed class ScrollTextBufferLineAddedEvent : ScyllaEvent
Constructors
ScrollTextBufferLineAddedEvent(ScrollTextBuffer, string)
Initializes a new ScrollTextBufferLineAddedEvent recording the buffer and the text string that was appended.
Declaration
public ScrollTextBufferLineAddedEvent(ScrollTextBuffer buffer, string text)
Parameters
| Type | Name | Description |
|---|---|---|
| ScrollTextBuffer | buffer | The ScrollTextBuffer to which the line was added. |
| string | text | The text string that was appended. |
Properties
Buffer
Gets the ScrollTextBuffer to which the line was added.
Declaration
public ScrollTextBuffer Buffer { get; }
Property Value
| Type | Description |
|---|---|
| ScrollTextBuffer |
LineCount
Gets the total number of lines currently stored in Buffer after
the addition. Returns 0 when Buffer is null.
Declaration
public int LineCount { get; }
Property Value
| Type | Description |
|---|---|
| int |
Text
Gets the text string that was appended to the buffer.
Declaration
public string Text { get; }
Property Value
| Type | Description |
|---|---|
| string |