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