編輯

共用方式為


ToolBar.ToolBarButtonCollection.IList.Add(Object) Method

Definition

Adds the specified toolbar button to the end of the toolbar button collection.

 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

Parameters

button
Object

The ToolBarButton to be added after all existing buttons.

Returns

The zero-based index value of the ToolBarButton added to the collection.

Implements

Exceptions

button is not a ToolBarButton.

Remarks

This member is an explicit interface member implementation. It can be used only when the ToolBar.ToolBarButtonCollection is cast to an IList interface.

Applies to