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

Stores values keyed by RadDependencyProperty and exposes their per-instance defaults and change callbacks.

Definition

Namespace:Telerik.Windows.Base

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

C#
public abstract class RadDependencyObject

Inheritance: objectRadDependencyObject

Constructors

C#
protected RadDependencyObject()

Methods

Gets the value assigned to a property, or its registered default when no value has been assigned.

C#
public object GetValue(RadDependencyProperty dependencyProperty)
Parameters:dependencyPropertyRadDependencyProperty

The property whose value to retrieve.

Returns:

object

The assigned value or the property's metadata default.

Exceptions: ArgumentNullException

dependencyProperty is null.

Handles a value assignment; the base implementation invokes the callback stored in the property's default metadata.

C#
protected virtual void OnPropertyChanged(RadDependencyPropertyChangedEventArgs e)
Parameters:eRadDependencyPropertyChangedEventArgs

The property and old/new values for the assignment.

Exceptions: ArgumentNullException

e does not identify a property.

Assigns a value and notifies the property-change hook with the previous and new values.

C#
public void SetValue(RadDependencyProperty dependencyProperty, object value)
Parameters:dependencyPropertyRadDependencyProperty

The property to assign.

valueobject

The value to store.

Exceptions: ArgumentNullException

dependencyProperty is null.

InvalidOperationException

The property is not attached and its owner type is not assignable from this object's type.

ArgumentException

value is non-null and not an instance of the property's declared type.

The first assignment reports UnsetValue as the old value. Every call notifies the property-change hook, including assignments of the current value.