Unicode Controls & Classes for VB6 - Version 4

clsUniLV_ListItems.Add Function

Adds a new item to the ListItems arrayList

Syntax
Public Function Add (Optional ByVal Index As Long = -1, _
Optional ByVal Key As String = "", _
Optional ByVal Text As String = "", _
Optional ByRef Icon As Variant = Nothing, _
Optional ByRef SmallIcon As Variant = Nothing, _
Optional ByVal RightToLeft As Boolean = False) As clsUniLV_ListItem
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 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.Icons] or [ctlUniListView.SmallIcons] or directly a Picture object
Optional ByRef SmallIcon As Variant = Nothing The small icon associated with the item, can be numeric (1..n) if you used a ImageList or [ctlImageBag] for the property [ctlUniListView.Icons] or [ctlUniListView.SmallIcons] or directly a Picture object
Optional ByVal RightToLeft As Boolean = False
Remarks