GetItemRect Method (JTree)

Class

JTree class

Action

Returns the size and position of the item relative to the tree.

Syntax

itemRect = tree.GetItemRect(item)
Variable Description
itemRect The rectangle returned includes the item's X and Y position relative to the tree, its width, and its height. RECT.
item The item path. LISTITEM.

Examples

RECT rect = tree.GetItemRect("/level_1-1/level_2-1/level_3-4")