ValueChangedCancelableEventArgs<T> Class
Definition
Section titled “Definition”Event arguments for an event fired when an object’s properties are changed. The change can be cancelled.
public class ValueChangedCancelableEventArgs<T> : ValueChangedEventArgs<T>Type Parameters
Section titled “Type Parameters”T
Inheritance object → EventArgs → SadRogue.Primitives.ValueChangedEventArgs<T>
Constructors
Section titled “Constructors”ValueChangedCancelableEventArgs(T, T)
Section titled “ValueChangedCancelableEventArgs(T, T)”Creates a new instance of this object with the specified old and new value.
public ValueChangedCancelableEventArgs(T oldValue, T newValue)Parameters
Section titled “Parameters”oldValue T
The old value.
newValue T
The new value.
Properties
Section titled “Properties”IsCancelled
Section titled “IsCancelled”Setting this property to true indicates that the change should be cancelled.
public bool IsCancelled { get; set; }