|
TCustomRichView.SetSelectionBounds |
Top Previous Next |
|
Selects part of RichView document (for copying to the Clipboard) procedure SetSelectionBounds(StartItemNo, StartItemOffs, EndItemNo, EndItemOffs: Integer); Parameters StartItemNo – index of the first selected item. StartItemOffs:
EndItemNo – index of the last selected item. EndItemOffs:
In TRichViewEdit, the caret is always at the end of the selection, so this method can be used to move caret.
There are two ways to deselect:
Please be careful and do not specify incorrect values. This method does not repaint component (use Invalidate) This method generates OnSelect event. There are two useful methods to work with SetSelectionBounds: GetOffsBeforeItem and GetOffsAfterItem. This method must be called only when the document is formatted.
See also methods:
See also events:
See also: See also:
|