The next tree item with the same parent.

Property of

TreeItem

Description

The read-only nextSibling property contains an object reference to the next tree item (down) that has the same parent. If the tree item is the last one, nextSibling is null.

Use nextSibling to loop forward through the items in a tree (or subtree).