PropertyStoreItem
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class PropertyStoreItem : INotifyPropertyChanged
Inheritance: objectPropertyStoreItem
Implements:
Constructors
Creates a new instance of the PropertyStoreItem which can be added to a RadPropertyStore.
public PropertyStoreItem(Type propertyType, string propertyName, object value, string description, string category, bool readOnly)
The type of the item.
propertyNamestringThe name to be displayed for the item.
valueobjectThe initial value for the item.
descriptionstringThe description to be displayed for the item.
categorystringThe category the item would be grouped in.
readOnlyboolDetermines if the property would be editable.
Creates a new instance of the PropertyStoreItem which can be added to a RadPropertyStore.
public PropertyStoreItem(Type propertyType, string propertyName, object value, string description, string category)
The type of the item.
propertyNamestringThe name to be displayed for the item.
valueobjectThe initial value for the item.
descriptionstringThe description to be displayed for the item.
categorystringThe category the item would be grouped in.
Creates a new instance of the PropertyStoreItem which can be added to a RadPropertyStore.
public PropertyStoreItem(Type propertyType, string propertyName, object value, string description)
The type of the item.
propertyNamestringThe name to be displayed for the item.
valueobjectThe initial value for the item.
descriptionstringThe description to be displayed for the item.
Creates a new instance of the PropertyStoreItem which can be added to a RadPropertyStore.
Properties
Attributes
List<Attribute>
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.
public virtual List<Attribute> Attributes { get; set; }
Gets or sets the category of this item. Same as setting a CategoryAttribute to a property.
public virtual string Category { get; set; }
Gets or sets the description to be displayed in the RadPropertyGrid for this item. Same as setting a DescriptionAttribute to a property.
public virtual string Description { get; set; }
Gets or sets the text to be displayed instead of the property name. Same as setting a DisplayNameAttribute to a property.
public virtual string Label { get; set; }
Gets or sets the RadPropertyStore that contains this item.
public virtual RadPropertyStore Owner { get; set; }
Gets or sets the name that would be displayed in the RadPropertyGrid
public virtual string PropertyName { get; set; }
Gets or sets the Type of the property.
public virtual Type PropertyType { get; set; }
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.
public virtual bool ReadOnly { get; set; }
Methods
Called when the PropertyChanged event is fired.
protected virtual void OnNotifyPropertyChanged(PropertyChangedEventArgs args)
Resets the value to the initial state.
public virtual void ResetValue()
Events
Occurs when any of the PropertyStoreItem properties is changed.
public event PropertyChangedEventHandler PropertyChanged
Implements: