Class SelectionChangedEventArgs
- Namespace
- SharpConsoleUI.Core
- Assembly
- SharpConsoleUI.dll
Event payload describing a change to a window's active text selection.
public record SelectionChangedEventArgs : IEquatable<SelectionChangedEventArgs>
- Inheritance
-
SelectionChangedEventArgs
- Implements
- Inherited Members
- Extension Methods
Constructors
SelectionChangedEventArgs(ISelectableControl?, string?)
Event payload describing a change to a window's active text selection.
public SelectionChangedEventArgs(ISelectableControl? Active, string? SelectedText)
Parameters
ActiveISelectableControlThe control that owns the active selection, or
nullif the selection was cleared.SelectedTextstringThe currently selected plain text, or
nullif nothing is selected.
Properties
Active
The control that owns the active selection, or null if the selection was cleared.
public ISelectableControl? Active { get; init; }
Property Value
SelectedText
The currently selected plain text, or null if nothing is selected.
public string? SelectedText { get; init; }