Class
RadPropertyStore

Collection of items which can be set as a property grid selected object. It's items would be displayed in the property grid as properties of an object.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

cs-api-definition
public class RadPropertyStore : IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged

Inheritance: objectRadPropertyStore

Implements: IEnumerableINotifyCollectionChangedINotifyPropertyChanged

Constructors

RadPropertyStore()

Creates a new instance of the RadPropertyStore

Declaration

cs-api-definition
public RadPropertyStore()

Properties

Count

Gets the number of items in the collection.

Declaration

cs-api-definition
public virtual int Count { get; }

Property Value

int

IsReadOnly

Gets a value indicating whether the collection is read only.

Declaration

cs-api-definition
public virtual bool IsReadOnly { get; }

Property Value

bool

this[int]

Gets or sets the item at the specified index.

Declaration

cs-api-definition
public virtual PropertyStoreItem this[int index] { get; set; }

Parameters

index

int

The index.

Property Value

PropertyStoreItem

The item on the specified index.

this[string]

Gets or sets the item with the specified name.

Declaration

cs-api-definition
public virtual PropertyStoreItem this[string propertyName] { get; set; }

Parameters

propertyName

string

The property name.

Property Value

PropertyStoreItem

Returns the item if its present in the collection otherwise returns null

Methods

Add(PropertyStoreItem)

Adds an item to the collection.

Declaration

cs-api-definition
public virtual void Add(PropertyStoreItem item)

Parameters

item

PropertyStoreItem

The item to add.

Add(Type, string, object)

Adds an item to the collection.

Declaration

cs-api-definition
public virtual void Add(Type propertyType, string propertyName, object value)

Parameters

propertyType

Type

Type of the item.

propertyName

string

Name to be displayed in the RadPropertyGrid.

value

object

Value for the item.

AddRange(IEnumerable<PropertyStoreItem>)

Adds a collection of items to this collection.

Declaration

cs-api-definition
public virtual void AddRange(IEnumerable<PropertyStoreItem> items)

Parameters

items

IEnumerable<PropertyStoreItem>

The collection of items to add.

Clear()

Clears the entire collection.

Declaration

cs-api-definition
public virtual void Clear()

Contains(PropertyStoreItem)

Checks whether a specific item is present in the collection.

Declaration

cs-api-definition
public virtual bool Contains(PropertyStoreItem item)

Parameters

item

PropertyStoreItem

The item to check.

Returns

bool

True if the item is contained in the collection otherwise false.

CopyTo(PropertyStoreItem[], int)

Copies the items of the collection to the specified array starting from the provided index.

Declaration

cs-api-definition
public virtual void CopyTo(PropertyStoreItem[] array, int arrayIndex)

Parameters

array

PropertyStoreItem[]

The destination array.

arrayIndex

int

The index in the destination array.

GetEnumerator()

Gets the generic enumerator for this collection.

Declaration

cs-api-definition
public IEnumerator<PropertyStoreItem> GetEnumerator()

Returns

IEnumerator<PropertyStoreItem>

The generic enumerator.

IndexOf(PropertyStoreItem)

Gets the index of the item.

Declaration

cs-api-definition
public virtual int IndexOf(PropertyStoreItem item)

Parameters

item

PropertyStoreItem

The item which index to return

Returns

int

The index of the item if found and -1 if item is not in the collection.

Insert(int, PropertyStoreItem)

Inserts the item on the specified index.

Declaration

cs-api-definition
public virtual void Insert(int index, PropertyStoreItem item)

Parameters

index

int

The index to insert on.

item

PropertyStoreItem

The item to insert.

ItemExistsInCollection(PropertyStoreItem)

Declaration

cs-api-definition
protected virtual bool ItemExistsInCollection(PropertyStoreItem item)

Parameters

item

PropertyStoreItem

Returns

bool

OnCollectionChanged(NotifyCollectionChangedEventArgs)

Declaration

cs-api-definition
public virtual void OnCollectionChanged(NotifyCollectionChangedEventArgs e)

Parameters

e

NotifyCollectionChangedEventArgs

OnItemValueChanged(PropertyStoreItem)

Declaration

cs-api-definition
public virtual void OnItemValueChanged(PropertyStoreItem item)

Parameters

item

PropertyStoreItem

OnItemValueChanged(PropertyStoreItemValueChangedEventArgs)

Declaration

cs-api-definition
public virtual void OnItemValueChanged(PropertyStoreItemValueChangedEventArgs e)

Parameters

e

PropertyStoreItemValueChangedEventArgs

OnNotifyPropertyChanged(PropertyChangedEventArgs)

Declaration

cs-api-definition
public virtual void OnNotifyPropertyChanged(PropertyChangedEventArgs e)

Parameters

e

PropertyChangedEventArgs

OnNotifyPropertyChanged(string)

Declaration

cs-api-definition
public virtual void OnNotifyPropertyChanged(string propertyName)

Parameters

propertyName

string

Remove(PropertyStoreItem)

Removes the specified item form the collection.

Declaration

cs-api-definition
public virtual bool Remove(PropertyStoreItem item)

Parameters

item

PropertyStoreItem

The item to remove from the collection.

Returns

bool

True if the removal was successful otherwise false.

Remove(string)

Removes the item with the specified name form the collection.

Declaration

cs-api-definition
public virtual bool Remove(string propertyName)

Parameters

propertyName

string

The name of the item to remove.

Returns

bool

True if the removal was successful otherwise false.

RemoveAt(int)

Removes an item from the specified index.

Declaration

cs-api-definition
public virtual void RemoveAt(int index)

Parameters

index

int

The index to remove on.

Events

CollectionChanged

Occurs when the collection changes.

Declaration

cs-api-definition
public event NotifyCollectionChangedEventHandler CollectionChanged

Event Value

NotifyCollectionChangedEventHandler

Implements INotifyCollectionChanged.CollectionChanged

ItemValueChanged

Declaration

cs-api-definition
public event PropertyStoreItemValueChangedEventHandler ItemValueChanged

Event Value

PropertyStoreItemValueChangedEventHandler

PropertyChanged

Declaration

cs-api-definition
public event PropertyChangedEventHandler PropertyChanged

Event Value

PropertyChangedEventHandler

Implements INotifyPropertyChanged.PropertyChanged