Programming with Reflection
SelectText method
Syntax object.SelectText StartRow, StartCol, EndRow, EndCol, [SelectionType]
Selects a region of display memory.
To reset the current selection (if any exists), call this method with StartRow larger than EndRow, or StartCol larger than EndCol. For example, SelectText 1, 1, 0, 0.
StartRow Argument Type: Integer
Required
Specifies the row in display memory where the selection starts. The row is specified in host addressable coordinates.
StartCol Argument Type: Integer
Required
Specifies the column where the selection starts.
EndRow Argument Type: Integer
Required
Specifies the row where the selection ends.
EndCol Argument Type: Integer
Required
Specifies the column where the selection ends.
SelectionType Argument Type: Enumeration
Optional
Specifies how the selection is to be made. The possible values are:
rcRectRegion
This option indicates that the text selected should be a "rectangular" region; for example:
The bold text in this sentence will be
selected if rcRectRegion is specified.
rcWrappedRegion
The default is to select a wrapped region; for example:
The bold text in this sentence will be
selected if rcWrappedRegion is specified.
The default option is rcWrappedRegion.