DataGridViewComboBoxCell::ObjectCollection Class

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Represents the collection of selection choices in a DataGridViewComboBoxCell.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

System::Object
  System.Windows.Forms::DataGridViewComboBoxCell::ObjectCollection

[ListBindableAttribute(false)]
public ref class ObjectCollection : IList, ICollection, IEnumerable

NameDescription
System_CAPS_pubmethodDataGridViewComboBoxCell::ObjectCollection(DataGridViewComboBoxCell^)

Initializes a new instance of the DataGridViewComboBoxCell::ObjectCollection class.

NameDescription
System_CAPS_pubpropertyCount

Gets the number of items in the collection.

System_CAPS_pubpropertyIsReadOnly

Gets a value indicating whether the collection is read-only.

System_CAPS_pubpropertyItem[Int32]

Gets or sets the item at the current index location. In C#, this property is the indexer for the DataGridViewComboBoxCell::ObjectCollection class.

NameDescription
System_CAPS_pubmethodAdd(Object^)

Adds an item to the list of items for a DataGridViewComboBoxCell.

System_CAPS_pubmethodAddRange(array<Object^>^)

Adds one or more items to the list of items for a DataGridViewComboBoxCell.

System_CAPS_pubmethodAddRange(DataGridViewComboBoxCell::ObjectCollection^)

Adds the items of an existing DataGridViewComboBoxCell::ObjectCollection to the list of items in a DataGridViewComboBoxCell.

System_CAPS_pubmethodClear()

Clears all items from the collection.

System_CAPS_pubmethodContains(Object^)

Determines whether the specified item is contained in the collection.

System_CAPS_pubmethodCopyTo(array<Object^>^, Int32)

Copies the entire collection into an existing array of objects at a specified location within the array.

System_CAPS_pubmethodEquals(Object^)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetEnumerator()

Returns an enumerator that can iterate through a DataGridViewComboBoxCell::ObjectCollection.

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodIndexOf(Object^)

Returns the index of the specified item in the collection.

System_CAPS_pubmethodInsert(Int32, Object^)

Inserts an item into the collection at the specified index.

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodRemove(Object^)

Removes the specified object from the collection.

System_CAPS_pubmethodRemoveAt(Int32)

Removes the object at the specified index.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodICollection::CopyTo(Array^, Int32)

Copies the elements of the collection to the specified array, starting at the specified index.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIList::Add(Object^)

Adds an object to the collection.

System_CAPS_pubinterfaceSystem_CAPS_privpropertyICollection::IsSynchronized

Gets a value indicating whether access to the collection is synchronized (thread safe).

System_CAPS_pubinterfaceSystem_CAPS_privpropertyICollection::SyncRoot

Gets an object that can be used to synchronize access to the collection.

System_CAPS_pubinterfaceSystem_CAPS_privpropertyIList::IsFixedSize

Gets a value indicating whether the collection has a fixed size.

NameDescription
System_CAPS_pubmethodAsParallel()

Overloaded. Enables parallelization of a query.(Defined by ParallelEnumerable.)

System_CAPS_pubmethodAsQueryable()

Overloaded. Converts an IEnumerable to an IQueryable.(Defined by Queryable.)

System_CAPS_pubmethodCast<TResult>()

Casts the elements of an IEnumerable to the specified type.(Defined by Enumerable.)

System_CAPS_pubmethodOfType<TResult>()

Filters the elements of an IEnumerable based on a specified type.(Defined by Enumerable.)

You can retrieve DataGridViewComboBoxCell::ObjectCollection objects from the DataGridViewComboBoxCell::Items property or the DataGridViewComboBoxColumn::Items property.

.NET Framework
Available since 2.0

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: