DoubleClickItem Method (JList)

Class

JList.

Action

Double-clicks a list item.

Syntax

C#
list.DoubleClickItem(item, [button, position, modifiers])
VB
list.DoubleClickItem(item, [button, position, modifiers])
Variable Description
item The name or index of the list item. ItemIdentifier.
button Optional: The button used for double-clicking. Valid values are: left (=1, the default value), right (=2), middle (=3). MouseButton.
position Optional: The double-clicked position within the list. (default: center of the list item). Point.
modifiers Optional: The modifier keys (Alt, Shift and Ctrl) to press while double-clicking the list item. Default: Don't use modifier keys. ModifierKeys.

Examples

VB

colorsList.DoubleClickItem("green", MouseButton.Left, New Point(10, 10), Silktest.Ntf.ModifierKeys.Control)
colorsList.DoubleClickItem("green")
colorsList.DoubleClickItem(3)