ToolBar::ToolBarButtonCollection::ContainsKey Method (String^)

 

Determines if a ToolBarButton with the specified key is contained in the collection.

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

public:
virtual bool ContainsKey(
	String^ key
)

Parameters

key
Type: System::String^

The name of the ToolBarButton to search for.

Return Value

Type: System::Boolean

true 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
Return to top
Show: