Unicode Controls & Classes for VB6 - Version 4

clsUniLV_ColumnHeaders.Add Function

Adds a ColumnHeader object to a ColumnHeaders collection

Syntax
Public Function Add (Optional ByVal Index As Long = -1, _
Optional ByVal Key As String = "", _
Optional ByVal Text As String = "", _
Optional ByVal Width As Integer = -1&, _
Optional ByVal Alignment As eCtlUniListView_ListColumnAlignmentConstants = elvca_left, _
Optional ByRef Icon As Variant = Nothing, _
Optional ByVal RightToLeft As Boolean = False) As clsUniLV_ColumnHeader
Parameters
Parameter Description
Optional ByVal Index As Long = -1 The index to be used for insertion
Optional ByVal Key As String = "" The key associated with the element
Optional ByVal Text As String = "" The element text
Optional ByVal Width As Integer = -1& The width of the column in a report view
Optional ByVal Alignment As eCtlUniListView_ListColumnAlignmentConstants = elvca_left The text alignment
Optional ByRef Icon As Variant = Nothing The icon associated with the item, can be numeric (1..n) if you used a ImageList or [ctlImageBag] for the property [ctlUniListView.ColumnHeaderIcons] or directly a Picture object
Optional ByVal RightToLeft As Boolean = False
Remarks