Export (0) Print
Expand All

ListView.ColumnHeaderCollection.ContainsKey Method

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


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

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
© 2015 Microsoft