DataGridViewComboBoxCell.ObjectCollection.IList.Add(Object) Metoda

Definicja

Dodaje obiekt do kolekcji.

 virtual int System.Collections.IList.Add(System::Object ^ item) = System::Collections::IList::Add;
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

Parametry

item
Object

Obiekt, który zostanie dodany do kolekcji.

Zwraca

Int32

Położenie, w którym ma zostać wstawiony nowy element.

Implementuje

Wyjątki

item to null.

Wartość właściwości komórki DataSource nie nulljest .

Komórka znajduje się w udostępnionym wierszu.

Uwagi

Ten element jest jawną implementacją członków. Można go używać tylko wtedy, gdy DataGridViewComboBoxCell.ObjectCollection wystąpienie jest rzutowanie do interfejsu IList .

Dotyczy

Zobacz też