Class LineScrollTextBufferLineAddedEvent
Event published by a LineScrollTextBuffer each time a new logical line of text is appended to the buffer. Consumers can use this to trigger a display refresh or track buffer growth.
Inherited Members
Namespace: Scylla.Core.Util.UI
Assembly: ScyllaCore.dll
Syntax
public sealed class LineScrollTextBufferLineAddedEvent : ScyllaEvent
Constructors
LineScrollTextBufferLineAddedEvent(LineScrollTextBuffer, string)
Initializes a new LineScrollTextBufferLineAddedEvent recording the buffer and the text string that was appended as a new logical line.
Declaration
public LineScrollTextBufferLineAddedEvent(LineScrollTextBuffer buffer, string text)
Parameters
| Type | Name | Description |
|---|---|---|
| LineScrollTextBuffer | buffer | The LineScrollTextBuffer to which the line was added. |
| string | text | The text string that was appended. |
Properties
Buffer
Gets the LineScrollTextBuffer to which the line was added.
Declaration
public LineScrollTextBuffer Buffer { get; }
Property Value
| Type | Description |
|---|---|
| LineScrollTextBuffer |
LineCount
Gets the total number of logical 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 as a new logical line.
Declaration
public string Text { get; }
Property Value
| Type | Description |
|---|---|
| string |