Table of Contents

Class ValueChangingEventArgs<T>

Namespace
Myra.Events
Assembly
Myra.dll

Provides data for value changing events that can be cancelled.

public class ValueChangingEventArgs<T> : CancellableEventArgs

Type Parameters

T

The 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

oldValue T

The previous value.

newValue T

The 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