Programming with Reflection

image\rwnprg32.gif ExtendSelectionWord method

 

Syntax object.ExtendSelectionWord Direction

 

Description

Extends selection in the terminal window from the selection start position (or row 1, column 1, if there is no selection start position) back to the beginning of the current word or from the cursor forward to the end of the current word. To set the selection start position, use the SetSelectionStartPos method or click in the terminal window.

For example, this pair of commands selects everything from the position of the last mouse click to the beginning of the next word on the screen:

 Session.SetSelectionStartPos rcMouseRow, rcMouseCol

 Session.ExtendSelectionWord rcForward

Arguments

Direction Argument type: Enumeration
Indicates whether text should be selected back to the beginning of the word or forward to the end of the word. The values are:

 rcBackward

 Extends the selection back to the beginning of the word. The character under the cursor is not included in the selection. The space preceding the word is not included.

 rcForward

 Extends the selection forward to the end of the word. The character under the cursor is included in the selection. Space after the word is included.

 

image\jump.gif Keyword Index

image\popup.gif Related Topics

image\popup.gif Reflection products that use this command