ListBox.SelectedIndexCollection.IList.Add(Object) Metoda

Definicja

Aby uzyskać opis tego członka, zobacz Add(Object).

 virtual int System.Collections.IList.Add(System::Object ^ value) = System::Collections::IList::Add;
int IList.Add (object value);
int IList.Add (object? value);
abstract member System.Collections.IList.Add : obj -> int
override this.System.Collections.IList.Add : obj -> int
Function Add (value As Object) As Integer Implements IList.Add

Parametry

value
Object

Indeks do dodania do kolekcji.

Zwraca

Pozycja, w której został wstawiony indeks.

Implementuje

Uwagi

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

Nie można bezpośrednio zmienić ListBox.SelectedIndexCollection klasy. Aby dodać element do ListBox.SelectedIndexCollectionklasy , użyj SelectedIndex właściwości lub SetSelected metody .

Dotyczy