ListView::ColumnHeaderCollection::ContainsKey Method (String^)
.NET Framework (current version)
Determines if a column 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 column to search for.
Return Value
Type: System::Booleantrue if a column with the specified name is contained in the collection; otherwise, false.
The key comparison is not case-sensitive. If key is null or empty, ContainsKey returns false.
The Name property corresponds to the key for an item in the ListView::ColumnHeaderCollection.
.NET Framework
Available since 2.0
Available since 2.0
Show: