Programming with Reflection
ExtendSelectionLine method
Syntax object.ExtendSelectionLine Direction
Selects all text between the selection start position (or row 1, column 1, if there is no selection start position) and either the beginning or the end of the line. To set the selection start position, use the SetSelectionStartPos method or click in the terminal window.
For example, this pair of commands selects all the text on the 5th row, starting with column 10 and continuing to the end of the row.
Session.SetSelectionStartPos 5,10
Session.ExtendSelectionLine rcForward
Direction Argument type: Enumeration
Indicates whether text should be selected from the selection start position to the beginning or the end of the line. The values are:
rcBackward
Extends the selection to the beginning of the line. The character under the cursor is not included in the selection.
rcForward
Extends the selection to the end of the line. The character under the cursor is included in the selection.