StatusBar.StatusBarPanelCollection.IList.Add(Object) Metoda

Definicja

Dodaje element StatusBarPanel do kolekcji.

Ten interfejs API obsługuje infrastrukturę produktu i nie jest przeznaczony do użycia bezpośrednio z poziomu kodu.

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

Element StatusBarPanel reprezentujący panel do dodania do kolekcji.

Zwraca

Pozycja, w której wstawiono nowy element, lub -1 wskazująca, że element nie został wstawiony do kolekcji.

Implementuje

Wyjątki

value nie jest elementem StatusBarPanel.

-lub-

Element nadrzędny wartości nie nulljest .

Dotyczy