Table of Contents

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

Active ISelectableControl

The control that owns the active selection, or null if the selection was cleared.

SelectedText string

The currently selected plain text, or null if 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

ISelectableControl

SelectedText

The currently selected plain text, or null if nothing is selected.

public string? SelectedText { get; init; }

Property Value

string