Language

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 。

返品

コレクションに追加 ToolBarButton の 0 から始まるインデックス値。

実装

例外

button は ToolBarButtonではありません。

注釈

このメンバーは、明示的なインターフェイス メンバーの実装です。 ToolBar.ToolBarButtonCollectionがIList インターフェイスにキャストされている場合にのみ使用できます。

適用対象