RadDependencyObject
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:
public abstract class RadDependencyObject
Inheritance: objectRadDependencyObject
Constructors
protected RadDependencyObject()
Methods
Gets the value assigned to a property, or its registered default when no value has been assigned.
public object GetValue(RadDependencyProperty dependencyProperty)
The property whose value to retrieve.
Returns:The assigned value or the property's metadata default.
Exceptions: ArgumentNullExceptiondependencyProperty is null.
Handles a value assignment; the base implementation invokes the callback stored in the property's default metadata.
protected virtual void OnPropertyChanged(RadDependencyPropertyChangedEventArgs e)
The property and old/new values for the assignment.
Exceptions: ArgumentNullExceptione does not identify a property.
Assigns a value and notifies the property-change hook with the previous and new values.
public void SetValue(RadDependencyProperty dependencyProperty, object value)
The property to assign.
valueobjectThe value to store.
Exceptions: ArgumentNullExceptiondependencyProperty is null.
The property is not attached and its owner type is not assignable from this object's type.
ArgumentExceptionvalue 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.