Node Object

This object is an item in a TreeView control that can contain images and text.

Syntax

treeview.Node

Parameters

treeview
Object expression that evaluates to a TreeView control.

The Node object supports the following properties:

Child LastSibling
Children Next
Expanded Parent
ExpandedImage Previous
FirstSibling Root
FullPath Selected
Image SelectedImage
Index Sorted
Key Text

The Node object supports the following method:

Remarks

Nodes can contain both text and pictures. However, to use pictures you must associate an ImageList control using the ImageList property.

Pictures can change depending on the state of the node; for example, a selected node can have a different picture from an unselected node if you set the SelectedImage property to an image from the associated ImageList.