ITreeControl.InnerRoot

Syntax

InnerRoot: ITreeListNodeBase;

Description

The InnerRoot property returns parameters of the inner root node of the tree.

Comments

The inner root node is a base of the whole tree. It is not displayed in the tree, its direct child elements are the elements of the first visible level.

Example

Executing the example requires a form, a button named Button1 on it and the TreeList component named TreeList1.

    Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
    Var
        Root: ITreeListNodeBase;
    Begin
        Root := TreeList1.InnerRoot;
        Debug.WriteLine(Root.Count);
    End Sub Button1OnClick;

Pressing the button displays the number of elements placed on the topmost level of the tree of the TreeList1 component in the development environment console.

See also:

ITreeControl