語言

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 介面時使用。

適用於