ToolBar::ToolBarButtonCollection::Item Property (String^)

 

Gets a ToolBarButton with the specified key from the collection.

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

public:
property ToolBarButton^ default[
	String^ key
] {
	virtual ToolBarButton^ get(String^ key);
}

Parameters

key
Type: System::String^

The name of the ToolBarButton to retrieve.

Property Value

Type: System.Windows.Forms::ToolBarButton^

The ToolBarButton whose Name property matches the specified key.

The Name property corresponds to the key for a ToolBarButton in the ToolBar::ToolBarButtonCollection.

The key comparison is not case-sensitive. If the key parameter is null or an empty string, Item returns null.

.NET Framework
Available since 2.0
Return to top
Show: