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.
Checks whether an item with the same property name is already present in the store.
protected virtual bool ItemExistsInCollection(PropertyStoreItem item)
The item whose property name is checked.
Returns:Raises CollectionChanged with the supplied collection-change details.
public virtual void OnCollectionChanged(NotifyCollectionChangedEventArgs e)
The collection change to report.
Creates event data for the item and forwards it to OnItemValueChanged(PropertyStoreItemValueChangedEventArgs).
public virtual void OnItemValueChanged(PropertyStoreItem item)
The item whose value setter raised the notification.
Raises ItemValueChanged with the supplied item event data.
public virtual void OnItemValueChanged(PropertyStoreItemValueChangedEventArgs e)
The item associated with the value-setter notification.
Forwards the supplied property-change notification to store subscribers.
public virtual void OnNotifyPropertyChanged(PropertyChangedEventArgs e)
The property-change details to report.
Raises PropertyChanged for the specified property name.
public virtual void OnNotifyPropertyChanged(string propertyName)
The name of the changed property.
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 store forwards a collection-change notification from its underlying item collection.
public event NotifyCollectionChangedEventHandler CollectionChanged
Implements:
Occurs when an owned item's Value setter processes a non-equal value. Conversion failures can still raise this event without changing the stored value.
public event PropertyStoreItemValueChangedEventHandler ItemValueChanged
Occurs when a property of the store or one of its owned items changes.
public event PropertyChangedEventHandler PropertyChanged
Implements: