New to Telerik UI for WinFormsStart a free 30-day trial

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class PropertyStoreItem : INotifyPropertyChanged

Inheritance: objectPropertyStoreItem

Implements: INotifyPropertyChanged

Constructors

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

C#
public PropertyStoreItem(Type propertyType, string propertyName, object value, string description, string category, bool readOnly)
Parameters:propertyTypeType

The type of the item.

propertyNamestring

The name to be displayed for the item.

valueobject

The initial value for the item.

descriptionstring

The description to be displayed for the item.

categorystring

The category the item would be grouped in.

readOnlybool

Determines if the property would be editable.

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

C#
public PropertyStoreItem(Type propertyType, string propertyName, object value, string description, string category)
Parameters:propertyTypeType

The type of the item.

propertyNamestring

The name to be displayed for the item.

valueobject

The initial value for the item.

descriptionstring

The description to be displayed for the item.

categorystring

The category the item would be grouped in.

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

C#
public PropertyStoreItem(Type propertyType, string propertyName, object value, string description)
Parameters:propertyTypeType

The type of the item.

propertyNamestring

The name to be displayed for the item.

valueobject

The initial value for the item.

descriptionstring

The description to be displayed for the item.

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

C#
public PropertyStoreItem(Type propertyType, string propertyName, object value)
Parameters:propertyTypeType

The type of the item.

propertyNamestring

The name to be displayed for the item.

valueobject

The initial value for the item.

Properties

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.

C#
public virtual List<Attribute> Attributes { get; set; }

Gets or sets the category of this item. Same as setting a CategoryAttribute to a property.

C#
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.

C#
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.

C#
public virtual string Label { get; set; }

Gets or sets the RadPropertyStore that contains this item.

C#
public virtual RadPropertyStore Owner { get; set; }

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

C#
public virtual string PropertyName { get; set; }

Gets or sets the Type of the property.

C#
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.

C#
public virtual bool ReadOnly { get; set; }

Gets or sets the value of the item.

C#
public virtual object Value { get; set; }

Methods

Called when the PropertyChanged event is fired.

C#
protected virtual void OnNotifyPropertyChanged(PropertyChangedEventArgs args)
Parameters:argsPropertyChangedEventArgs

Resets the value to the initial state.

C#
public virtual void ResetValue()

Events

Occurs when any of the PropertyStoreItem properties is changed.

C#
public event PropertyChangedEventHandler PropertyChanged

Implements: INotifyPropertyChanged.PropertyChanged