ListView::ColumnHeaderCollection::ContainsKey Method (String^)

 

Determines if a column 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 column to search for.

Return Value

Type: System::Boolean

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