GetItemRect Method (JTree)

Class

JTree.

Action

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

Syntax

C#
itemRect = tree.GetItemRect(item)
VB
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. Rectangle.
item The item path. ItemPath.

Examples

VB

Dim rect As Rectangle = tree.GetItemRect("/level_1-1/level_2-1/level_3-4")