ClassPropertyStoreItem
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class PropertyStoreItem : INotifyPropertyChanged
Inheritance: objectPropertyStoreItem
Implements:
Constructors
PropertyStoreItem(Type, string, object)
Creates a new instance of the PropertyStoreItem which can be added to a RadPropertyStore.
PropertyStoreItem(Type, string, object, string)
Creates a new instance of the PropertyStoreItem which can be added to a RadPropertyStore.
Declaration
public PropertyStoreItem(Type propertyType, string propertyName, object value, string description)
Parameters
propertyType
The type of the item.
propertyName
The name to be displayed for the item.
value
The initial value for the item.
description
The description to be displayed for the item.
PropertyStoreItem(Type, string, object, string, string)
Creates a new instance of the PropertyStoreItem which can be added to a RadPropertyStore.
Declaration
public PropertyStoreItem(Type propertyType, string propertyName, object value, string description, string category)
Parameters
propertyType
The type of the item.
propertyName
The name to be displayed for the item.
value
The initial value for the item.
description
The description to be displayed for the item.
category
The category the item would be grouped in.
PropertyStoreItem(Type, string, object, string, string, bool)
Creates a new instance of the PropertyStoreItem which can be added to a RadPropertyStore.
Declaration
public PropertyStoreItem(Type propertyType, string propertyName, object value, string description, string category, bool readOnly)
Parameters
propertyType
The type of the item.
propertyName
The name to be displayed for the item.
value
The initial value for the item.
description
The description to be displayed for the item.
category
The category the item would be grouped in.
readOnly
Determines if the property would be editable.
Properties
Attributes
Gets or sets a collection of attributes to be applied to the item in the property grid. If an attribute covered by property of the PropertyStoreItem is added the attribute in this collection will be ignored. ReadOnlyAttribute will always be ignored.
Declaration
public virtual List<Attribute> Attributes { get; set; }
Property Value
List<Attribute>
Category
Gets or sets the category of this item. Same as setting a CategoryAttribute to a property.
Description
Gets or sets the description to be displayed in the RadPropertyGrid for this item. Same as setting a DescriptionAttribute to a property.
Label
Gets or sets the text to be displayed instead of the property name. Same as setting a DisplayNameAttribute to a property.
Owner
Gets or sets the RadPropertyStore that contains this item.
Declaration
public virtual RadPropertyStore Owner { get; set; }
Property Value
PropertyName
Gets or sets the name that would be displayed in the RadPropertyGrid
Declaration
public virtual string PropertyName { get; set; }
Property Value
PropertyType
Gets or sets the Type of the property.
ReadOnly
Gets or sets a value indication whether this property item would be read only in the RadPropertyGrid. Same as setting a ReadOnlyAttribute to a property.
Methods
OnNotifyPropertyChanged(PropertyChangedEventArgs)
Called when the PropertyChanged event is fired.
Declaration
protected virtual void OnNotifyPropertyChanged(PropertyChangedEventArgs args)
Parameters
args
ResetValue()
Resets the value to the initial state.
Declaration
public virtual void ResetValue()
Events
PropertyChanged
Occurs when any of the PropertyStoreItem properties is changed.
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Value
Implements