ListView::ColumnHeaderCollection::Add Method (String^, String^, Int32)
.NET Framework (current version)
Creates and adds a column with the specified text, key, and width to the collection.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Parameters
- key
-
Type:
System::String^
The key of the column header.
- text
-
Type:
System::String^
The text to display in the column header.
- width
-
Type:
System::Int32
The initial width of the ColumnHeader.
Return Value
Type: System.Windows.Forms::ColumnHeader^The ColumnHeader with the given text, key, and width that was added to the collection.
The Name property corresponds to the key for a column in the ListView::ColumnHeaderCollection.
The column is added at the end of the collection.
.NET Framework
Available since 2.0
Available since 2.0
Show: