Class ValueChangingEventArgs<T>
Provides data for value changing events that can be cancelled.
public class ValueChangingEventArgs<T> : CancellableEventArgs
Type Parameters
TThe type of the value.
- Inheritance
-
ValueChangingEventArgs<T>
- Inherited Members
Constructors
ValueChangingEventArgs(T, T)
Initializes a new instance of the ValueChangingEventArgs<T> class.
public ValueChangingEventArgs(T oldValue, T newValue)
Parameters
oldValueTThe previous value.
newValueTThe new value.
Properties
NewValue
Gets or sets the new value after the change. Can be modified to change the final value.
public T NewValue { get; set; }
Property Value
- T
OldValue
Gets the previous value before the change.
public T OldValue { get; }
Property Value
- T