ListView.ColumnHeaderCollection.Add Method (String, Int32)
.NET Framework (current version)
![]() |
---|
The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience. |
Creates and adds a column with the specified text and width to the collection.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Parameters
- text
-
Type:
System.String
The text of the ColumnHeader to add to the collection.
- width
-
Type:
System.Int32
The width of the ColumnHeader to add to the collection.
Return Value
Type: System.Windows.Forms.ColumnHeaderThe ColumnHeader with the specified text and width that was added to the ListView.ColumnHeaderCollection.
The column is added at the end of the collection.
.NET Framework
Available since 2.0
Available since 2.0
Show: