Skip to content

TextChangedEventArgs ​

Namespace: Hex1b.Events

Assembly: Hex1b.dll

Event arguments for text box text change events.

csharp
public sealed class TextChangedEventArgs : WidgetEventArgs<TextBoxWidget, TextBoxNode>

Inheritance ​

Object → WidgetEventArgs → WidgetEventArgs<TextBoxWidget, TextBoxNode> → TextChangedEventArgs

Constructors ​

TextChangedEventArgs(TextBoxWidget, TextBoxNode, InputBindingActionContext, string, string) ​

Parameters:

csharp
public TextChangedEventArgs(TextBoxWidget widget, TextBoxNode node, InputBindingActionContext context, string oldText, string newText)

Properties ​

Lines ​

The lines of text after the change, split on newline characters. Useful for multiline text boxes to access individual lines without manual splitting.

Returns: String[]

csharp
public string[] Lines { get; }

NewText ​

The text content after the change.

Returns: String

csharp
public string NewText { get; }

OldText ​

The text content before the change.

Returns: String

csharp
public string OldText { get; }

Released under the MIT License.