ToolBar::ToolBarButtonCollection::Item Property (String^)
.NET Framework (current version)
Gets a ToolBarButton with the specified key from the collection.
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
Available since 2.0
Show: