Add Method
Description
Adds a ListViewColumnHeader object to a ListViewColumnHeaders collection in a ListView control.
Syntax
Public Function Add( _
Optional ByVal [Index](#) As Variant, _
Optional ByVal [Key](#) As Variant, _
Optional ByVal [Text](#) As Variant, _
Optional ByVal [Width](#) As Variant, _
Optional ByVal [Alignment](#) As Variant, _
Optional ByVal [Icon](#) As Variant _
) As [ListViewColumnHeader](XtremeSuiteControls~ListViewColumnHeader.md)
Parameters
- Index: An integer that uniquely identifies a member of an object collection.
- Key: A unique string expression that can be used to access a member of the collection.
- Text: The text to display in the column header.
- Width: The initial width of the column header.
- Alignment: An integer that determines the alignment of text in the column header.
- Icon: The index value of the image to display in the column header.
Return Type
The ListViewColumnHeader with the specified key, aligned text, width, and image key that has been added to the collection.
Remarks
The Add method returns a reference to the newly inserted ListViewColumnHeader object. Use the index argument to insert a column header in a specific position in the column headers collection.
See Also

Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.