Table of Contents

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

hasSelection bool

Whether a non-empty selection currently exists.

selectedText string

The currently selected plain text (empty when cleared).

Properties

HasSelection

Gets whether a non-empty selection currently exists.

public bool HasSelection { get; }

Property Value

bool

SelectedText

Gets the currently selected plain text (empty when the selection was cleared).

public string SelectedText { get; }

Property Value

string