Class MultiObjectCollection
Represents a collection of objects. It can be used in a property grid to edit the common properties of the objects.
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
public class MultiObjectCollection : IList<object>, ICollection<object>, IEnumerable<object>, IEnumerable
Constructors
MultiObjectCollection()
MultiObjectCollection(Object[])
Creates a new Multi
Declaration
public MultiObjectCollection(object[] objects)
Parameters
System. The objects to fill the collection with. |
Properties
Count
Gets the number of items currently in the collection.
Declaration
public int Count { get; }
Property Value
System.
|
Implements
IsReadOnly
Gets a value indicating whether the collection si read only. Always returns false.
Declaration
public bool IsReadOnly { get; }
Property Value
System.
|
Implements
Item[Int32]
Gets or sets the object on the specified index.
Declaration
public object this[int index] { get; set; }
Parameters
System. The index of the object |
Property Value
System.
|
Implements
Methods
Add(Object)
Adds an object to the collection.
Declaration
public void Add(object item)
Parameters
System. The object to add. |
Implements
Clear()
Clears the entire collection.
Declaration
public void Clear()
Implements
Contains(Object)
Checks whether the collection contains the given object.
Declaration
public bool Contains(object item)
Parameters
System. The object to check for. |
Returns
System. True if the object is present in the collection, otherwise false. |
Implements
CopyTo(Object[], Int32)
Copies the objects from the collection to a specified array starting at the given index.
Declaration
public void CopyTo(object[] array, int arrayIndex)
Parameters
System. The destination array. |
System. The index to start at in the destination array. |
Implements
IndexOf(Object)
Gets the index of a given object.
Declaration
public int IndexOf(object item)
Parameters
System. The object to look for. |
Returns
System. The index of the object or -1 if the object is not present in the collection. |
Implements
Insert(Int32, Object)
Inserts an object in the given index.
Declaration
public void Insert(int index, object item)
Parameters
System. The index to insert on. |
System. The object to insert. |
Implements
Remove(Object)
Removes a specified object from the collection.
Declaration
public bool Remove(object item)
Parameters
System. The object to remove. |
Returns
System. True if the object was removed otherwise false. |
Implements
RemoveAt(Int32)
Removes an object from the specified index.
Declaration
public void RemoveAt(int index)
Parameters
System. The index to remove from. |
Implements
Explicit Interface Implementations
IEnumerable<Object>.GetEnumerator()
Declaration
IEnumerator<object> IEnumerable<object>.GetEnumerator()
Returns
System.
|
Implements
IEnumerable.GetEnumerator()
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
System.
|