ClickNode Method (JTree)

Class

JTree.

Action

Clicks on a tree node specified by the item path.

Syntax

C#
tree.ClickNode(item, [button, position, modifiers])
VB
tree.ClickNode(item, [button, position, modifiers])
Variable Description
item The item path to click on. ItemPath.
button Optional: The button used for clicking. Valid values are: left (=1, the default value), right (=2), middle (=3). MouseButton.
position Optional: The position to click. If the position is omitted, the click is done in the center of the tree node. Point.
modifiers Optional: The modifier keys (Alt, Shift and Ctrl) to press while clicking the tree node. Default: Don't use modifier keys. ModifierKeys.

Examples

VB

tree.ClickNode("/level_1-1/level_2-1/level_3-4", MouseButton.Left, New Point(10, 10), SilkTest.Ntf.ModifierKeys.Control)
tree.ClickNode("/level_1-1/level_2-1/level_3-4")