Node Object Properties 

The Node object has the following properties:

Node Object Properties

Name

Parameter

Type

Description

Expanded

 

Boolean

Indicates whether the node is currently expanded. If the Expanded property is assigned TRUE, the node is expanded as if the user had clicked on the expander symbol.

Index

 

Visible

Returns the index for the node within the Nodes collection. Read-only.

Selected

 

Long

Indicates whether the node is currently selected. May also be written.

Visible

 

Boolean

Indicates whether the node is currently visible. Read-only.

(see also EnsureVisible)

Key

 

String

Unique identifying key value or an empty string.

Parent

 

Object

Returns the parent node object or Nothing if the node is a root node. This property may also be written in order to move a node to a different location in the tree.

LastSibling

 

Object

Returns the last node at the sibling level, or Nothing when invoked on an empty collection. Read-only.

FirstSibling

 

Object

Returns the first node at the sibling level, or Nothing when invoked on an empty collection. Read-only.

Next

 

Object

Returns the next node at the sibling level, or Nothing when invoked on the last node in a collection. Read-only.

Previous

 

Object

Returns the previous node at the sibling level, or Nothing when invoked on the first node in a collection. Read-only.

Child

 

Object

Returns the first child node, of Nothing if the node does not have any children. Read-only.

Children

 

Object

Returns a Nodes collection containing all the child nodes at the next level. Even though a node may not have any children, a valid object is always returned. If the node does not have any children, the Count property for the Children collection returns a value of 0. Read-only.

Type

 

CNodeType

Indicates the type of the node.

Font

 

Object

Font object used for all text items in the node.

ForceExpander

 

Boolean

If TRUE, the node is forced to display an expander symbol, no matter whether the Children collection is empty or not.

AllChildren

 

Collection

Enumerator with an IEnumVARIANT interface.

FullPath

 

String

Returns the full path of the object consisting of the name and the names of all parents. Each name is separated by the value assigned to the PathSeparator property of the Table Tree Object

Data

 

Array of Variant

Returns a safe array containing the data of all items within the node.

Value

Long Idx

Variant

Returns the value of a single item of the node. The data of a single item may also be accessed by Dynamic Node Properties created at runtime.