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.
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
public class RadPropertyStore : IList<PropertyStoreItem>, ICollection<PropertyStoreItem>, IEnumerable<PropertyStoreItem>, IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged
Constructors
RadPropertyStore()
Properties
Count
Gets the number of items in the collection.
Declaration
public virtual int Count { get; }
Property Value
System.Int32
|
Implements
IsReadOnly
Gets a value indicating whether the collection is read only.
Declaration
public virtual bool IsReadOnly { get; }
Property Value
System.Boolean
|
Implements
Item[Int32]
Gets or sets the item at the specified index.
Declaration
public virtual PropertyStoreItem this[int index] { get; set; }
Parameters
System.Int32
index
The index. |
Property Value
PropertyStoreItem
The item on the specified index. |
Implements
Item[String]
Gets or sets the item with the specified name.
Declaration
public virtual PropertyStoreItem this[string propertyName] { get; set; }
Parameters
System.String
propertyName
The property name. |
Property Value
PropertyStoreItem
Returns the item if its present in the collection otherwise returns null |
Methods
Add(Type, String, Object)
Adds an item to the collection.
Declaration
public virtual void Add(Type propertyType, string propertyName, object value)
Parameters
System.Type
propertyType
Type of the item. |
System.String
propertyName
Name to be displayed in the RadPropertyGrid. |
System.Object
value
Value for the item. |
Add(PropertyStoreItem)
Adds an item to the collection.
Declaration
public virtual void Add(PropertyStoreItem item)
Parameters
PropertyStoreItem
item
The item to add. |
Implements
AddRange(IEnumerable<PropertyStoreItem>)
Adds a collection of items to this collection.
Declaration
public virtual void AddRange(IEnumerable<PropertyStoreItem> items)
Parameters
System.Collections.Generic.IEnumerable<PropertyStoreItem>
items
The collection of items to add. |
Clear()
Clears the entire collection.
Declaration
public virtual void Clear()
Implements
Contains(PropertyStoreItem)
Checks whether a specific item is present in the collection.
Declaration
public virtual bool Contains(PropertyStoreItem item)
Parameters
PropertyStoreItem
item
The item to check. |
Returns
System.Boolean
True if the item is contained in the collection otherwise false. |
Implements
CopyTo(PropertyStoreItem[], Int32)
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
PropertyStoreItem[]
array
The destination array. |
System.Int32
arrayIndex
The index in the destination array. |
Implements
GetEnumerator()
Gets the generic enumerator for this collection.
Declaration
public IEnumerator<PropertyStoreItem> GetEnumerator()
Returns
System.Collections.Generic.IEnumerator<PropertyStoreItem>
The generic enumerator. |
Implements
IndexOf(PropertyStoreItem)
Gets the index of the item.
Declaration
public virtual int IndexOf(PropertyStoreItem item)
Parameters
PropertyStoreItem
item
The item which index to return |
Returns
System.Int32
The index of the item if found and -1 if item is not in the collection. |
Implements
Insert(Int32, PropertyStoreItem)
Inserts the item on the specified index.
Declaration
public virtual void Insert(int index, PropertyStoreItem item)
Parameters
System.Int32
index
The index to insert on. |
PropertyStoreItem
item
The item to insert. |
Implements
ItemExistsInCollection(PropertyStoreItem)
Declaration
protected virtual bool ItemExistsInCollection(PropertyStoreItem item)
Parameters
PropertyStoreItem
item
|
Returns
System.Boolean
|
OnCollectionChanged(NotifyCollectionChangedEventArgs)
Declaration
public virtual void OnCollectionChanged(NotifyCollectionChangedEventArgs e)
Parameters
NotifyCollectionChangedEventArgs
e
|
OnItemValueChanged(PropertyStoreItem)
Declaration
public virtual void OnItemValueChanged(PropertyStoreItem item)
Parameters
PropertyStoreItem
item
|
OnItemValueChanged(PropertyStoreItemValueChangedEventArgs)
Declaration
public virtual void OnItemValueChanged(PropertyStoreItemValueChangedEventArgs e)
Parameters
PropertyStoreItemValueChangedEventArgs
e
|
OnNotifyPropertyChanged(PropertyChangedEventArgs)
Declaration
public virtual void OnNotifyPropertyChanged(PropertyChangedEventArgs e)
Parameters
System.ComponentModel.PropertyChangedEventArgs
e
|
OnNotifyPropertyChanged(String)
Declaration
public virtual void OnNotifyPropertyChanged(string propertyName)
Parameters
System.String
propertyName
|
Remove(String)
Removes the item with the specified name form the collection.
Declaration
public virtual bool Remove(string propertyName)
Parameters
System.String
propertyName
The name of the item to remove. |
Returns
System.Boolean
True if the removal was successful otherwise false. |
Remove(PropertyStoreItem)
Removes the specified item form the collection.
Declaration
public virtual bool Remove(PropertyStoreItem item)
Parameters
PropertyStoreItem
item
The item to remove from the collection. |
Returns
System.Boolean
True if the removal was successful otherwise false. |
Implements
RemoveAt(Int32)
Removes an item from the specified index.
Declaration
public virtual void RemoveAt(int index)
Parameters
System.Int32
index
The index to remove on. |
Implements
Events
CollectionChanged
Declaration
public event NotifyCollectionChangedEventHandler CollectionChanged
Event Type
NotifyCollectionChangedEventHandler
|
Implements
ItemValueChanged
Declaration
public event PropertyStoreItemValueChangedEventHandler ItemValueChanged
Event Type
PropertyStoreItemValueChangedEventHandler
|
PropertyChanged
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
System.ComponentModel.PropertyChangedEventHandler
|
Explicit Interface Implementations
IEnumerable.GetEnumerator()
Gets the enumerator for this collection.
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
System.Collections.IEnumerator
The enumerator. |