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.
Возвращаемое значение
Значение true
указывает на то, что в коллекции содержится объект StatusBarPanel с указанным ключом; в противном случае — значение 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.