Editar

Compartilhar via


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);
int IList.Add (object? item);
abstract member System.Collections.IList.Add : obj -> int
override this.System.Collections.IList.Add : obj -> int
Function Add (item As Object) As Integer Implements IList.Add

Parameters

item
Object

The object to add to the collection.

Returns

The position in which to insert the new element.

Implements

Exceptions

item is null.

The cell's DataSource property value is not null.

The cell is in a shared row.

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