Table of Contents

Class EditStateChangedEventArgs

Namespace
SharpConsoleUI.Core
Assembly
SharpConsoleUI.dll

Event arguments for edit state changes

public class EditStateChangedEventArgs : EventArgs
Inheritance
EditStateChangedEventArgs
Inherited Members

Constructors

EditStateChangedEventArgs(IWindowControl, EditState, EditState, EditChangeReason)

Initializes a new instance of the EditStateChangedEventArgs class.

public EditStateChangedEventArgs(IWindowControl control, EditState previousState, EditState newState, EditChangeReason reason)

Parameters

control IWindowControl

The control whose edit state changed.

previousState EditState

The previous edit state before the change.

newState EditState

The new edit state after the change.

reason EditChangeReason

The reason for the edit state change.

Properties

Control

The control whose edit state changed

public IWindowControl Control { get; }

Property Value

IWindowControl

CursorChanged

Whether the cursor position changed

public bool CursorChanged { get; }

Property Value

bool

NewState

The new edit state

public EditState NewState { get; }

Property Value

EditState

PreviousState

The previous edit state

public EditState PreviousState { get; }

Property Value

EditState

Reason

The reason for the change

public EditChangeReason Reason { get; }

Property Value

EditChangeReason

ScrollChanged

Whether the scroll position changed

public bool ScrollChanged { get; }

Property Value

bool

SelectionChanged

Whether the selection changed

public bool SelectionChanged { get; }

Property Value

bool