ToolBar.ToolBarButtonCollection.IList.Add(Object) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將指定的工具列按鈕加入工具列按鈕集合的末尾。
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 。
實作
例外狀況
button 不是 ToolBarButton。
備註
此成員為明確介面成員實作。 它只能在投 ToolBar.ToolBarButtonCollection 射到 IList 介面時使用。