Unicode Controls & Classes for VB6 - Version 4

ucTreeView.AddNode Function

Adds a node

Syntax
Public Function AddNode (Optional ByVal hRelative As Long, _
Optional ByVal Relation As tvRelationConstants, _
Optional ByVal Key As String, _
Optional ByVal Text As String, _
Optional ByVal Image As Long = -1, _
Optional ByVal SelectedImage As Long = -1, _
Optional ByVal PlusButton As Boolean = False, _
Optional ByVal Tag As String = vbNullString, _
Optional ByVal ForeColor As Long = -1&, _
Optional ByVal BackColor As Long = -1&) As Long
Parameters
Parameter Description
Optional ByVal hRelative As Long The node to use as reference
Optional ByVal Relation As tvRelationConstants The relation constant
Optional ByVal Key As String The node key
Optional ByVal Text As String The node text
Optional ByVal Image As Long = -1 The node image index
Optional ByVal SelectedImage As Long = -1 The image to use when the node is selected
Optional ByVal PlusButton As Boolean = False Has this node a plus button?
Optional ByVal Tag As String = vbNullString The node tag
Optional ByVal ForeColor As Long = -1& The node text color
Optional ByVal BackColor As Long = -1& The node background color
Remarks