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 MultiObjectCollection with the specified objects.
Declaration
public MultiObjectCollection(object[] objects)
Parameters
|
System.Object[]
objects
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.Int32
|
Implements
IsReadOnly
Gets a value indicating whether the collection si read only. Always returns false.
Declaration
public bool IsReadOnly { get; }
Property Value
|
System.Boolean
|
Implements
Item[Int32]
Gets or sets the object on the specified index.
Declaration
public object this[int index] { get; set; }
Parameters
|
System.Int32
index
The index of the object |
Property Value
|
System.Object
|
Implements
Methods
Add(Object)
Adds an object to the collection.
Declaration
public void Add(object item)
Parameters
|
System.Object
item
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.Object
item
The object to check for. |
Returns
|
System.Boolean
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.Object[]
array
The destination array. |
|
System.Int32
arrayIndex
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.Object
item
The object to look for. |
Returns
|
System.Int32
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.Int32
index
The index to insert on. |
|
System.Object
item
The object to insert. |
Implements
Remove(Object)
Removes a specified object from the collection.
Declaration
public bool Remove(object item)
Parameters
|
System.Object
item
The object to remove. |
Returns
|
System.Boolean
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.Int32
index
The index to remove from. |
Implements
Explicit Interface Implementations
IEnumerable<Object>.GetEnumerator()
Declaration
IEnumerator<object> IEnumerable<object>.GetEnumerator()
Returns
|
System.Collections.Generic.IEnumerator<System.Object>
|
Implements
IEnumerable.GetEnumerator()
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
|
System.Collections.IEnumerator
|