Class TextSelectionChangedEventArgs
- Namespace
- SharpConsoleUI.Controls
- Assembly
- SharpConsoleUI.dll
Event data describing a change to a control's text selection.
public class TextSelectionChangedEventArgs : EventArgs
- Inheritance
-
TextSelectionChangedEventArgs
- Inherited Members
- Extension Methods
Constructors
TextSelectionChangedEventArgs(bool, string)
Initializes a new instance of the TextSelectionChangedEventArgs class.
public TextSelectionChangedEventArgs(bool hasSelection, string selectedText)
Parameters
hasSelectionboolWhether a non-empty selection currently exists.
selectedTextstringThe currently selected plain text (empty when cleared).
Properties
HasSelection
Gets whether a non-empty selection currently exists.
public bool HasSelection { get; }
Property Value
SelectedText
Gets the currently selected plain text (empty when the selection was cleared).
public string SelectedText { get; }