The first child tree item.

Property of

TreeItem, TreeView

Description

firstChild is a read-only property that contains an object reference to the object’s first child tree item. If the object has no children, firstChild is null.

When a form is opened, a TreeView object's firstChild property will point to it's first TreeItem. The firstChild property will return "null" when:

The form's TreeView doesn't contain any TreeItems

The form isn't open.