Show contents 

Working with Trees > Classes > TreeNode > TreeNode.getRealHeight

TreeNode.getRealHeight

Syntax

getRealHeight();

Description

The getRealHeight method returns real height of tree node.

Example

To execute the example, the page must contain the TreeList component named treeList (see Example of Creating the TreeList Component). We get the real height of the tree node with the Africa contents:

// We get the real height of the tree node with the Africa contents
console.log("Real height of tree node with the Africa contents: " + treeList.findText("Africa").getRealHeight());

As the result, the real height of tree node with the Africa contents is displayed to the console:

Real height of tree node with the Africa contents: 20

See also:

TreeNode