Class ValueChangedCancelableEventArgs<T>
Event arguments for an event fired when an object's properties are changed. The change can be cancelled.
Inherited Members
Namespace: SadConsole
Assembly: SadConsole.dll
Syntax
public class ValueChangedCancelableEventArgs<T> : ValueChangedEventArgs<T>
Type Parameters
| Name | Description |
|---|---|
| T |
Constructors
ValueChangedCancelableEventArgs(T, T)
Creates a new instance of this object with the specified old and new value.
Declaration
public ValueChangedCancelableEventArgs(T oldValue, T newValue)
Parameters
| Type | Name | Description |
|---|---|---|
| T | oldValue | The old value. |
| T | newValue | The new value. |
Properties
IsCancelled
Setting this property to true indicates that the change should be cancelled.
Declaration
public bool IsCancelled { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |