Class PropertyStoreItem
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
public class PropertyStoreItem : INotifyPropertyChanged
Constructors
PropertyStoreItem(Type, String, Object)
Creates a new instance of the PropertyStoreItem which can be added to a RadPropertyStore.
Declaration
public PropertyStoreItem(Type propertyType, string propertyName, object value)
Parameters
System.Type
propertyType
The type of the item. |
System.String
propertyName
The name to be displayed for the item. |
System.Object
value
The initial value for the item. |
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
System.Type
propertyType
The type of the item. |
System.String
propertyName
The name to be displayed for the item. |
System.Object
value
The initial value for the item. |
System.String
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
System.Type
propertyType
The type of the item. |
System.String
propertyName
The name to be displayed for the item. |
System.Object
value
The initial value for the item. |
System.String
description
The description to be displayed for the item. |
System.String
category
The category the item would be grouped in. |
PropertyStoreItem(Type, String, Object, String, String, Boolean)
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
System.Type
propertyType
The type of the item. |
System.String
propertyName
The name to be displayed for the item. |
System.Object
value
The initial value for the item. |
System.String
description
The description to be displayed for the item. |
System.String
category
The category the item would be grouped in. |
System.Boolean
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. System.ComponentModel.ReadOnlyAttribute will always be ignored.
Declaration
public virtual List<Attribute> Attributes { get; set; }
Property Value
System.Collections.Generic.List<System.Attribute>
|
Category
Gets or sets the category of this item. Same as setting a System.ComponentModel.CategoryAttribute to a property.
Declaration
public virtual string Category { get; set; }
Property Value
System.String
|
Description
Gets or sets the description to be displayed in the RadPropertyGrid for this item. Same as setting a System.ComponentModel.DescriptionAttribute to a property.
Declaration
public virtual string Description { get; set; }
Property Value
System.String
|
Label
Gets or sets the text to be displayed instead of the property name. Same as setting a System.ComponentModel.DisplayNameAttribute to a property.
Declaration
public virtual string Label { get; set; }
Property Value
System.String
|
Owner
Gets or sets the RadPropertyStore that contains this item.
Declaration
public virtual RadPropertyStore Owner { get; set; }
Property Value
RadPropertyStore
|
PropertyName
Gets or sets the name that would be displayed in the RadPropertyGrid
Declaration
public virtual string PropertyName { get; set; }
Property Value
System.String
|
PropertyType
Gets or sets the Type of the property.
Declaration
public virtual Type PropertyType { get; set; }
Property Value
System.Type
|
ReadOnly
Gets or sets a value indication whether this property item would be read only in the RadPropertyGrid. Same as setting a System.ComponentModel.ReadOnlyAttribute to a property.
Declaration
public virtual bool ReadOnly { get; set; }
Property Value
System.Boolean
|
Value
Gets or sets the value of the item.
Declaration
public virtual object Value { get; set; }
Property Value
System.Object
|
Methods
OnNotifyPropertyChanged(PropertyChangedEventArgs)
Called when the PropertyChanged event is fired.
Declaration
protected virtual void OnNotifyPropertyChanged(PropertyChangedEventArgs args)
Parameters
System.ComponentModel.PropertyChangedEventArgs
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 Type
System.ComponentModel.PropertyChangedEventHandler
|