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

Definition

Namespace:Telerik.WinControls

Assembly:Telerik.WinControls.dll

Syntax:

C#
public class RadPropertyChangedEventArgs : EventArgs

Inheritance: objectEventArgsRadPropertyChangedEventArgs

Gets the registered property that changed.

C#
public RadProperty Property { get; }

Constructors

Initializes change data without property metadata.

C#
public RadPropertyChangedEventArgs(RadProperty property, object oldValue, object newValue)
Parameters:propertyRadProperty

The registered property that changed.

oldValueobject

The effective value before the change.

newValueobject

The effective value after the change.

Initializes change data with the metadata associated with the property.

C#
public RadPropertyChangedEventArgs(RadProperty property, RadPropertyMetadata metadata, object oldValue, object newValue)
Parameters:propertyRadProperty

The registered property that changed.

metadataRadPropertyMetadata

The metadata associated with property.

oldValueobject

The effective value before the change.

newValueobject

The effective value after the change.

Fields

Gets an event-data instance with no associated property or values.

C#
public static readonly RadPropertyChangedEventArgs Empty

Properties

Gets the metadata associated with Property, if supplied.

C#
public RadPropertyMetadata Metadata { get; }

Gets the effective property value after the change.

C#
public object NewValue { get; }

If the value is stored as a deferred reference, it is resolved and cached when first read.

Gets the source that supplied NewValue.

C#
public ValueSource NewValueSource { get; }

Gets the effective property value before the change.

C#
public object OldValue { get; }

If the value is stored as a deferred reference, it is resolved and cached when first read.

Gets the source that supplied OldValue.

C#
public ValueSource OldValueSource { get; }

Methods

Determines whether the stored property-change data matches another object.

C#
public override bool Equals(object obj)
Parameters:objobject

A non-null RadPropertyChangedEventArgs to compare with this instance.

Returns:

bool

true if the supplied event data has matching stored change state; otherwise, false.

Overrides: object.Equals(object)

Compares the property, values, metadata, and value-source state of two change notifications.

C#
public bool Equals(RadPropertyChangedEventArgs args)
Parameters:argsRadPropertyChangedEventArgs

A non-null event-data instance to compare with this instance.

Returns:

bool

true if the stored change data matches; otherwise, false.

Returns the base object hash code; it is not derived from the values compared by Equals(object).

C#
public override int GetHashCode()
Returns:

int

The hash code provided by object.

Overrides: object.GetHashCode()

Operators

Determines whether two property-change notifications have different stored change data.

C#
public static bool operator !=(RadPropertyChangedEventArgs left, RadPropertyChangedEventArgs right)
Parameters:leftRadPropertyChangedEventArgs

The first event-data instance.

rightRadPropertyChangedEventArgs

The second event-data instance.

Returns:

bool

true when the instances do not have matching change data.

Compares two property-change notifications using their stored change data.

C#
public static bool operator ==(RadPropertyChangedEventArgs left, RadPropertyChangedEventArgs right)
Parameters:leftRadPropertyChangedEventArgs

The first event-data instance.

rightRadPropertyChangedEventArgs

The second event-data instance.

Returns:

bool

true when both instances have matching change data.