ClassRadPropertyStore
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:
public class RadPropertyStore : IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged
Inheritance: objectRadPropertyStore
Implements:
Constructors
RadPropertyStore()
Creates a new instance of the RadPropertyStore
Declaration
public RadPropertyStore()
Properties
Count
Gets the number of items in the collection.
IsReadOnly
Gets a value indicating whether the collection is read only.
this[int]
Gets or sets the item at the specified index.
Declaration
public virtual PropertyStoreItem this[int index] { get; set; }
Parameters
index
The index.
Property Value
The item on the specified index.
this[string]
Gets or sets the item with the specified name.
Declaration
public virtual PropertyStoreItem this[string propertyName] { get; set; }
Parameters
propertyName
The property name.
Property Value
Returns the item if its present in the collection otherwise returns null
Methods
Add(PropertyStoreItem)
Adds an item to the collection.
Declaration
public virtual void Add(PropertyStoreItem item)
Parameters
item
The item to add.
Add(Type, string, object)
Adds an item to the collection.
AddRange(IEnumerable<PropertyStoreItem>)
Adds a collection of items to this collection.
Declaration
public virtual void AddRange(IEnumerable<PropertyStoreItem> items)
Parameters
items
IEnumerable<PropertyStoreItem>
The collection of items to add.
Contains(PropertyStoreItem)
Checks whether a specific item is present in the collection.
Declaration
public virtual bool Contains(PropertyStoreItem item)
Parameters
item
The item to check.
Returns
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
public virtual void CopyTo(PropertyStoreItem[] array, int arrayIndex)
Parameters
array
The destination array.
arrayIndex
The index in the destination array.
GetEnumerator()
Gets the generic enumerator for this collection.
Declaration
public IEnumerator<PropertyStoreItem> GetEnumerator()
Returns
IEnumerator<PropertyStoreItem>
The generic enumerator.
IndexOf(PropertyStoreItem)
Gets the index of the item.
Declaration
public virtual int IndexOf(PropertyStoreItem item)
Parameters
item
The item which index to return
Returns
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
public virtual void Insert(int index, PropertyStoreItem item)
Parameters
index
The index to insert on.
item
The item to insert.
ItemExistsInCollection(PropertyStoreItem)
Declaration
protected virtual bool ItemExistsInCollection(PropertyStoreItem item)
Parameters
item
Returns
OnCollectionChanged(NotifyCollectionChangedEventArgs)
Declaration
public virtual void OnCollectionChanged(NotifyCollectionChangedEventArgs e)
Parameters
e
OnItemValueChanged(PropertyStoreItem)
Declaration
public virtual void OnItemValueChanged(PropertyStoreItem item)
Parameters
item
OnItemValueChanged(PropertyStoreItemValueChangedEventArgs)
Declaration
public virtual void OnItemValueChanged(PropertyStoreItemValueChangedEventArgs e)
Parameters
e
OnNotifyPropertyChanged(PropertyChangedEventArgs)
Declaration
public virtual void OnNotifyPropertyChanged(PropertyChangedEventArgs e)
Parameters
e
OnNotifyPropertyChanged(string)
Declaration
public virtual void OnNotifyPropertyChanged(string propertyName)
Parameters
propertyName
Remove(PropertyStoreItem)
Removes the specified item form the collection.
Declaration
public virtual bool Remove(PropertyStoreItem item)
Parameters
item
The item to remove from the collection.
Returns
True if the removal was successful otherwise false.
Remove(string)
Removes the item with the specified name form the collection.
RemoveAt(int)
Removes an item from the specified index.
Declaration
public virtual void RemoveAt(int index)
Parameters
index
The index to remove on.
Events
CollectionChanged
Occurs when the collection changes.
Declaration
public event NotifyCollectionChangedEventHandler CollectionChanged
Event Value
Implements
ItemValueChanged
Declaration
public event PropertyStoreItemValueChangedEventHandler ItemValueChanged
Event Value
PropertyChanged
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Value
Implements