ToolBar.ToolBarButtonCollection.IList.Add(Object) Metoda

Definicja

Dodaje określony przycisk paska narzędzi na końcu kolekcji przycisków paska narzędzi.

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

Parametry

button
Object

Element do dodania ToolBarButton po wszystkich istniejących przyciskach.

Zwraca

Int32

Wartość indeksu ToolBarButton oparta na zera dodana do kolekcji.

Implementuje

Wyjątki

Uwagi

Ten element jest jawną implementacją członków. Może być używany tylko wtedy, gdy ToolBar.ToolBarButtonCollection obiekt jest rzutowy do interfejsu IList .

Dotyczy