Skip to content

ValueChangedCancelableEventArgs<T> Class

Event arguments for an event fired when an object’s properties are changed. The change can be cancelled.

C#
public class ValueChangedCancelableEventArgs<T> : ValueChangedEventArgs<T>

T

Inheritance objectEventArgs → SadRogue.Primitives.ValueChangedEventArgs<T>

Creates a new instance of this object with the specified old and new value.

C#
public ValueChangedCancelableEventArgs(T oldValue, T newValue)

oldValue T
The old value.

newValue T
The new value.

Setting this property to true indicates that the change should be cancelled.

C#
public bool IsCancelled { get; set; }