ToolBar.ToolBarButtonCollection.IList.Insert(Int32, Object) 方法

定義

在指定位置的工具列按鈕集合中插入現有工具列按鈕。

 virtual void System.Collections.IList.Insert(int index, System::Object ^ button) = System::Collections::IList::Insert;
void IList.Insert (int index, object button);
abstract member System.Collections.IList.Insert : int * obj -> unit
override this.System.Collections.IList.Insert : int * obj -> unit
Sub Insert (index As Integer, button As Object) Implements IList.Insert

參數

index
Int32

集合中要插入工具列按鈕的索引位置。

button
Object

要插入的 ToolBarButton

實作

例外狀況

button 不是 ToolBarButton

備註

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

適用於