TreeNode.NextNode Property

 

Gets the next sibling tree node.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

[<BrowsableAttribute(false)>]
member NextNode : TreeNode with get

Property Value

Type: System.Windows.Forms.TreeNode

A TreeNode that represents the next sibling tree node.

The NextNode is the next sibling TreeNode in the TreeNodeCollection stored in the Nodes property of the tree node's parent TreeNode. If there is no next tree node, the NextNode property returns null.

The following code example selects the appropriate TreeNode after determining if the TreeNode passed in is selected and which TreeNode to select. This example requires that you have a Form with a TreeView control that has a TreeNodeCollection that contains several TreeNode objects. It also requires that you have a ComboBox with the following items: "Previous", "PreviousVisible", "Next", "NextVisible", "First", and "Last".

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: