Adds a Style object to the Styles collection.
Syntax:
XTTreeviewVBCtl.Nodes.Add([Relative As String], [Relationship As E_RELATIONSHIP = 0], [Key As String], [Text As String = "")
The Add Method (Nodes Collection) syntax has these parts:
| Part |
Description |
| XTTreeviewVBCtl.Nodes |
An object expression that evaluates to an XTTreeview Control's Nodes collection. |
| Relative |
(Optional). The index number or key of a pre-existing Node object. The relationship between the new node and this pre-existing node is found in the next argument, relationship. |
| Relationship |
(Optional). Specifies the relative placement of the Node object, as described in Settings. |
| Key |
(Optional). A string value that uniquely identifies the Node object. |
| Text |
(Optional). The string that appears in the Node. |
The settings for Relationship are:
| Setting |
Description |
| 0 |
(E_RELATIONSHIP.RS_UNDEFINED). Undefined. The node is placed a a child node of the root node. |
| 1 |
(E_RELATIONSHIP.RS_CHILD). Child. The Node becomes a child node of the node named in relative. |
| 2 |
(E_RELATIONSHIP.RS_FIRST). First. The Node is placed before all other nodes at the same level of the node named in relative. |
| 3 |
(E_RELATIONSHIP.RS_LAST). Last. The Node is placed after all other nodes at the same level of the node named in relative. Any Node added subsequently may be placed after one added as Last. |
| 4 |
(E_RELATIONSHIP.RS_PREVIOUS). The Node is placed before the node named in relative. |
| 5 |
(E_RELATIONSHIP.RS_NEXT). Next. The Node is placed after the node named in relative. |
Remarks:
This method adds objects at the top of the list. In order to retrieve the index of the Node object that was added use the collection's Count property.