New to Telerik UI for WinForms? Start a free 30-day trial

Provides property name and value data for notifications raised before a property changes.

Handlers can cancel the change; callers that apply a handler-modified NewValue can also use it to replace the proposed value.

Definition

Namespace:Telerik.WinControls.Interfaces

Assembly:Telerik.WinControls.dll

Syntax:

C#
public class PropertyChangingEventArgsEx : CancelEventArgs

Inheritance: objectEventArgsCancelEventArgsPropertyChangingEventArgsEx

Inherited Members CancelEventArgs.CancelEventArgs.Empty

Constructors

Initializes event data with a property name and cancellation state, without value data.

C#
public PropertyChangingEventArgsEx(string propertyName, bool cancel)
Parameters:propertyNamestring

The name of the property being changed.

cancelbool

true to initialize the event as canceled.

Initializes event data with the old and proposed values and an initial cancellation state.

C#
public PropertyChangingEventArgsEx(string propertyName, object oldValue, object newValue, bool cancel)
Parameters:propertyNamestring

The name of the property being changed.

oldValueobject

The value before the change.

newValueobject

The proposed value.

cancelbool

true to initialize the event as canceled.

Initializes event data with the old and proposed values and an uncanceled state.

C#
public PropertyChangingEventArgsEx(string propertyName, object oldValue, object newValue)
Parameters:propertyNamestring

The name of the property being changed.

oldValueobject

The value before the change.

newValueobject

The proposed value.

Initializes event data with a property name and no value data or cancellation.

C#
public PropertyChangingEventArgsEx(string propertyName)
Parameters:propertyNamestring

The name of the property being changed.

Properties

Gets or sets the proposed value carried by the notification.

C#
public object NewValue { get; set; }

Gets the value before the change, when supplied by the caller.

C#
public object OldValue { get; }

Gets the name of the property associated with the notification.

C#
public virtual string PropertyName { get; }