Table of Contents

Class CancelEventArgs<T>

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

EventArgs for events that convey changes to a property of type T.

public class CancelEventArgs<T> : CancelEventArgs where T : notnull

Type Parameters

T

The type of the value that was part of the change being canceled.

Inheritance
CancelEventArgs<T>
Derived
Inherited Members

Remarks

Events that use this class can be cancellable. Where applicable, the Cancel property should be set to true to prevent the state change from occurring.

Constructors

CancelEventArgs(ref readonly T, ref T, bool)

Initializes a new instance of the CancelEventArgs<T> class.

Properties

CurrentValue

The current value of the property.

NewValue

The value the property will be set to if the event is not cancelled.