list.ClickItem(item, [button, position, modifiers])
list.ClickItem(item, [button, position, modifiers])
Variable | Description |
---|---|
item | The name or index of the list item. ItemIdentifier. |
button | Optional: The button used for clicking. Valid values are: left (=1, the default value), right (=2), middle (=3). MouseButton. |
position | Optional: The clicked position within the list. (default: center of the list item). Point. |
modifiers | Optional: The modifier keys (Alt, Shift and Ctrl) to press while clicking the list item. Use a modifier to click multiple list items. Default: Don't use modifier keys. ModifierKeys. |
VB
colorsList.ClickItem("green", MouseButton.Left, New Point(10, 10), SilkTest.Ntf.ModifierKeys.Control) colorsList.ClickItem(3, MouseButton.Left, New Point(10, 10), SilkTest.Ntf.ModifierKeys.Control) colorsList.ClickItem("green") colorsList.ClickItem(3)