StatusBar.StatusBarPanelCollection.ContainsKey(String) 方法
定义
确定集合是否包含具有指定键的 StatusBarPanel。Determines whether the collection contains a StatusBarPanel with the specified key.
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
要在集合中查找的项的名称。The name of the item to find in the collection.
返回
如果集合包含具有指定键的 StatusBarPanel,则为 true;否则为 false。true to indicate the collection contains a StatusBarPanel with the specified key; otherwise, false.
注解
Name属性对应于中的的键 StatusBarPanel StatusBar.StatusBarPanelCollection 。The Name property corresponds to the key for a StatusBarPanel in the StatusBar.StatusBarPanelCollection.
密钥比较不区分大小写。The key comparison is not case-sensitive. 如果 key 参数为 null 或空字符串,则 ContainsKey 返回 false.If the key parameter is null or an empty string, ContainsKey returns false.