ToolBar.ToolBarButtonCollection.IList.Add(Object) 方法

定義

將指定的工具列按鈕加入工具列按鈕集合的結尾。

 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

參數

button
Object

ToolBarButton,加入至所有現有按鈕之後。

傳回

Int32

加入集合之 ToolBarButton 以零為起始的索引值。

實作

例外狀況

button 不是 ToolBarButton

備註

這個成員是明確介面成員實作, 它只有在 ToolBar.ToolBarButtonCollection 轉型成 IList 介面時才能使用。

適用於