DataGridViewComboBoxCell.ObjectCollection.IList.Add(Object) DataGridViewComboBoxCell.ObjectCollection.IList.Add(Object) DataGridViewComboBoxCell.ObjectCollection.IList.Add(Object) Method

Definition

Adds an object to the collection.

 virtual int System.Collections.IList.Add(System::Object ^ item) = System::Collections::IList::Add;
int IList.Add (object item);
Function Add (item As Object) As Integer Implements IList.Add

Parameters

item
Object Object Object

The object to add to the collection.

Returns

The position in which to insert the new element.

Implements

Exceptions

The cell's DataSource property value is not null.

Remarks

This member is an explicit interface member implementation. It can be used only when the DataGridViewComboBoxCell.ObjectCollection instance is cast to an IList interface.

Applies to

See also