ToolBar::ToolBarButtonCollection::IList::Insert Method (Int32, Object^)

 

This API supports the product infrastructure and is not intended to be used directly from your code.

Inserts an existing toolbar button in the toolbar button collection at the specified location.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

private:
virtual void Insert(
	int index,
	Object^ button
) sealed = IList::Insert

Parameters

index
Type: System::Int32

The indexed location within the collection to insert the toolbar button.

button
Type: System::Object^

The ToolBarButton to insert.

Exception Condition
ArgumentException

button is not a ToolBarButton.

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

.NET Framework
Available since 1.1
Return to top
Show: