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

Supplies a dependency property's default value and optional change callback.

Definition

Namespace:Telerik.Windows.Base

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

C#
public class RadPropertyMetadata

Inheritance: objectRadPropertyMetadata

Constructors

Initializes metadata with a default value and an optional change callback.

C#
public RadPropertyMetadata(object defaultValue, RadPropertyChangedCallback propertyChangedCallback)
Parameters:defaultValueobject

The value returned before an object assigns the property.

propertyChangedCallbackRadPropertyChangedCallback

The callback invoked after the property is assigned, or null for no callback.

Initializes metadata with a default value and no change callback.

C#
public RadPropertyMetadata(object defaultValue)
Parameters:defaultValueobject

The value returned before an object assigns the property.

Initializes metadata with a change callback and a null default value.

C#
public RadPropertyMetadata(RadPropertyChangedCallback propertyChangedCallback)
Parameters:propertyChangedCallbackRadPropertyChangedCallback

The callback invoked after the property is assigned, or null for no callback.

Properties

Gets the value returned until the property is explicitly assigned on an object.

C#
public object DefaultValue { get; }