Add Method (String)

ListView.ColumnHeaderCollection.Add Method (String)


Creates and adds a column with the specified text to the collection.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public virtual ColumnHeader Add(
	string text


Type: System.String

The text to display in the column header.

Return Value

Type: System.Windows.Forms.ColumnHeader

The ColumnHeader with the specified text that was added to the ListView.ColumnHeaderCollection.

The column header will be added to the end of the collection.

.NET Framework
Available since 2.0
Return to top
© 2016 Microsoft