ListView::ColumnHeaderCollection::Add Method (String^, String^)
.NET Framework (current version)
Creates and adds a column with the specified text and key to the collection.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Parameters
- key
-
Type:
System::String^
The key of the ColumnHeader to add to the collection.
- text
-
Type:
System::String^
The text of the ColumnHeader to add to the collection.
Return Value
Type: System.Windows.Forms::ColumnHeader^The ColumnHeader with the specified key and text that was added to the ListView::ColumnHeaderCollection.
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: