Class
PropertyStoreItem

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

cs-api-definition
public class PropertyStoreItem : INotifyPropertyChanged

Inheritance: objectPropertyStoreItem

Implements: INotifyPropertyChanged

Constructors

PropertyStoreItem(Type, string, object)

Creates a new instance of the PropertyStoreItem which can be added to a RadPropertyStore.

Declaration

cs-api-definition
public PropertyStoreItem(Type propertyType, string propertyName, object value)

Parameters

propertyType

Type

The type of the item.

propertyName

string

The name to be displayed for the item.

value

object

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

cs-api-definition
public PropertyStoreItem(Type propertyType, string propertyName, object value, string description)

Parameters

propertyType

Type

The type of the item.

propertyName

string

The name to be displayed for the item.

value

object

The initial value for the item.

description

string

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

cs-api-definition
public PropertyStoreItem(Type propertyType, string propertyName, object value, string description, string category)

Parameters

propertyType

Type

The type of the item.

propertyName

string

The name to be displayed for the item.

value

object

The initial value for the item.

description

string

The description to be displayed for the item.

category

string

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

cs-api-definition
public PropertyStoreItem(Type propertyType, string propertyName, object value, string description, string category, bool readOnly)

Parameters

propertyType

Type

The type of the item.

propertyName

string

The name to be displayed for the item.

value

object

The initial value for the item.

description

string

The description to be displayed for the item.

category

string

The category the item would be grouped in.

readOnly

bool

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

cs-api-definition
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.

Declaration

cs-api-definition
public virtual string Category { get; set; }

Property Value

string

Description

Gets or sets the description to be displayed in the RadPropertyGrid for this item. Same as setting a DescriptionAttribute to a property.

Declaration

cs-api-definition
public virtual string Description { get; set; }

Property Value

string

Label

Gets or sets the text to be displayed instead of the property name. Same as setting a DisplayNameAttribute to a property.

Declaration

cs-api-definition
public virtual string Label { get; set; }

Property Value

string

Owner

Gets or sets the RadPropertyStore that contains this item.

Declaration

cs-api-definition
public virtual RadPropertyStore Owner { get; set; }

Property Value

RadPropertyStore

PropertyName

Gets or sets the name that would be displayed in the RadPropertyGrid

Declaration

cs-api-definition
public virtual string PropertyName { get; set; }

Property Value

string

PropertyType

Gets or sets the Type of the property.

Declaration

cs-api-definition
public virtual Type PropertyType { get; set; }

Property Value

Type

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.

Declaration

cs-api-definition
public virtual bool ReadOnly { get; set; }

Property Value

bool

Value

Gets or sets the value of the item.

Declaration

cs-api-definition
public virtual object Value { get; set; }

Property Value

object

Methods

OnNotifyPropertyChanged(PropertyChangedEventArgs)

Called when the PropertyChanged event is fired.

Declaration

cs-api-definition
protected virtual void OnNotifyPropertyChanged(PropertyChangedEventArgs args)

Parameters

args

PropertyChangedEventArgs

ResetValue()

Resets the value to the initial state.

Declaration

cs-api-definition
public virtual void ResetValue()

Events

PropertyChanged

Occurs when any of the PropertyStoreItem properties is changed.

Declaration

cs-api-definition
public event PropertyChangedEventHandler PropertyChanged

Event Value

PropertyChangedEventHandler

Implements INotifyPropertyChanged.PropertyChanged