ClickColumnHeader Method (JTableHeader)

Action

Clicks the column header of the table.

Syntax

tableHeader.ClickColumnHeader(column, [button, position, modifiers])
Variable Description
column The name or index of the column. 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 column header. (default: column header center). Point.
modifiers Optional: The modifier keys (Alt, Shift and Ctrl) to press while clicking the column header. Default: Don't use modifier keys. ModifierKeys.

Examples

tableHeader.ClickColumnHeader("Product Name", MouseButton.Left, New Point(10, 10), SilkTest.Ntf.ModifierKeys.Control)
tableHeader.ClickColumnHeader(4, MouseButton.Left, New Point(10, 10), SilkTest.Ntf.ModifierKeys.Control)
tableHeader.ClickColumnHeader("Product Name")
tableHeader.ClickColumnHeader(4)