Class RadPropertyMetadata
Represents metadata for a RadProperty. RadPropertyMetadata describes the property. For example, through DefaultValue property you can get or set the default value for the property.
Inheritance
Inherited Members
Namespace: Telerik.WinControls
Assembly: Telerik.WinControls.dll
Syntax
public class RadPropertyMetadata
Constructors
RadPropertyMetadata()
Initializes a new instance of the RadPropertyMetadata class.
Declaration
public RadPropertyMetadata()
RadPropertyMetadata(Object)
Initializes a new instance of the RadPropertyMetadata class using the default value of the property.
Declaration
public RadPropertyMetadata(object defaultValue)
Parameters
System.Object
defaultValue
|
RadPropertyMetadata(Object, PropertyChangedCallback)
Initializes a new instance of the RadPropertyMetadata class using an object and a property changed callback.
Declaration
public RadPropertyMetadata(object defaultValue, PropertyChangedCallback propertyChangedCallback)
Parameters
System.Object
defaultValue
|
PropertyChangedCallback
propertyChangedCallback
|
RadPropertyMetadata(PropertyChangedCallback)
Initializes a new instance of the RadPropertyMetadata class using a property changed callback.
Declaration
public RadPropertyMetadata(PropertyChangedCallback propertyChangedCallback)
Parameters
PropertyChangedCallback
propertyChangedCallback
|
Properties
AttachedPropertyUsage
Declaration
public AttachedPropertyUsage AttachedPropertyUsage { get; }
Property Value
AttachedPropertyUsage
|
CoerceValueCallback
Declaration
public CoerceValueCallback CoerceValueCallback { get; set; }
Property Value
CoerceValueCallback
|
DefaultValue
Gets or sets the default value of the property.
Declaration
public object DefaultValue { get; set; }
Property Value
System.Object
|
IsDefaultValueModified
Declaration
public bool IsDefaultValueModified { get; }
Property Value
System.Boolean
|
IsInherited
Gets or sets a value indicating whether the property is inherited.
Declaration
public bool IsInherited { get; set; }
Property Value
System.Boolean
|
IsSealed
Declaration
protected bool IsSealed { get; }
Property Value
System.Boolean
|
PropertyChangedCallback
Gets or sets the PropertyChangedCallback
Declaration
public PropertyChangedCallback PropertyChangedCallback { get; set; }
Property Value
PropertyChangedCallback
|
ReadOnly
Gets a value indicating whether the property is read-only.
Declaration
public bool ReadOnly { get; }
Property Value
System.Boolean
|
Sealed
Declaration
public bool Sealed { get; set; }
Property Value
System.Boolean
|
Methods
Copy(RadProperty)
Declaration
public RadPropertyMetadata Copy(RadProperty dp)
Parameters
RadProperty
dp
|
Returns
RadPropertyMetadata
|
CreateDefaultValue(RadObject, RadProperty)
Declaration
protected virtual object CreateDefaultValue(RadObject owner, RadProperty property)
Parameters
RadObject
owner
|
RadProperty
property
|
Returns
System.Object
|
CreateInstance()
DefaultValueWasSet()
Declaration
public bool DefaultValueWasSet()
Returns
System.Boolean
|
GetDefaultValue(RadObject, RadProperty)
Declaration
public object GetDefaultValue(RadObject owner, RadProperty property)
Parameters
RadObject
owner
|
RadProperty
property
|
Returns
System.Object
|
InvokeMerge(RadPropertyMetadata, RadProperty)
Declaration
public void InvokeMerge(RadPropertyMetadata baseMetadata, RadProperty dp)
Parameters
RadPropertyMetadata
baseMetadata
|
RadProperty
dp
|
Merge(RadPropertyMetadata, RadProperty)
Declaration
protected virtual void Merge(RadPropertyMetadata baseMetadata, RadProperty dp)
Parameters
RadPropertyMetadata
baseMetadata
|
RadProperty
dp
|
OnApply(RadProperty, Type)
Declaration
protected virtual void OnApply(RadProperty dp, Type targetType)
Parameters
RadProperty
dp
|
System.Type
targetType
|
ReadFlag(Int32)
Declaration
public bool ReadFlag(int id)
Parameters
System.Int32
id
|
Returns
System.Boolean
|
Seal(RadProperty, Type)
Declaration
public void Seal(RadProperty dp, Type targetType)
Parameters
RadProperty
dp
|
System.Type
targetType
|
SetAttachedPropertyUsage(AttachedPropertyUsage)
Declaration
public void SetAttachedPropertyUsage(AttachedPropertyUsage attachedPropertyUsage)
Parameters
AttachedPropertyUsage
attachedPropertyUsage
|
WriteFlag(Int32, Boolean)
Declaration
public void WriteFlag(int id, bool value)
Parameters
System.Int32
id
|
System.Boolean
value
|