ToolBar::ToolBarButtonCollection::ContainsKey Method (String^)
.NET Framework (current version)
Determines if a ToolBarButton with the specified key is contained in the collection.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Parameters
- key
-
Type:
System::String^
The name of the ToolBarButton to search for.
Return Value
Type: System::Booleantrue to indicate a ToolBarButton with the specified key is found; otherwise, false.
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 false.
.NET Framework
Available since 2.0
Available since 2.0
Show: