Table of Contents

Class CancelEventArgs<T>

Namespace
Terminal.Gui.App
Assembly
Terminal.Gui.dll

Provides data for events that can be cancelled without a changeable result in a cancellable workflow in the Cancellable Work Pattern (CWP).

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

Type Parameters

T

The type of the value that is being changed.

Inheritance
CancelEventArgs<T>
Derived
Inherited Members

Remarks

Used for workflows where a change (e.g., a simple property change) can be cancelled, but the value being changed is not directly modified by the event handlers.

Constructors

CancelEventArgs(T, T)

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

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.

See Also