DoubleClickNode Method (JTree)

Class

JTree.

Action

Double-clicks on a tree node specified by the item path.

Syntax

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

Examples

VB

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