ToolBar.ToolBarButtonCollection.ContainsKey(String) メソッド

定義

指定したキーの ToolBarButton がコレクション内にあるかどうかを判断します。

public:
 virtual bool ContainsKey(System::String ^ key);
public virtual bool ContainsKey (string key);
abstract member ContainsKey : string -> bool
override this.ContainsKey : string -> bool
Public Overridable Function ContainsKey (key As String) As Boolean

パラメーター

key
String

検索の対象となる ToolBarButton の名前。

戻り値

指定したキーの ToolBarButton が見つかったことを示す場合は true。それ以外の場合は false

注釈

プロパティは Name 、 内の の キー ToolBarButtonToolBar.ToolBarButtonCollection対応します。

キーの比較では、大文字と小文字は区別されません。 パラメーターが key または空の文字列の場合、 Item[]null を返しますfalse

適用対象