Table of Contents

Constructor CancelEventArgs

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

CancelEventArgs(ref readonly T, ref T, bool)

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

public CancelEventArgs(ref readonly T currentValue, ref T newValue, bool cancel = false)

Parameters

currentValue T

The current (old) value of the property.

newValue T

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

cancel bool

Whether the event should be canceled or not.