JVCL Help:TJvCustomRichEdit.SetSelection

From Project JEDI Wiki
Jump to navigationJump to search
JEDI Visual Component Library Help

Search in JVCL Help

 
Search in all projects
 

Summary

Selects a range of characters and/or Component Object Model (COM) objects in the rich edit control.


Pascal

 procedureSetSelection(StartPos: Longint; EndPos: Longint; ScrollCaret: Boolean);


Parameters

Parameters Description
StartPos: Longint Indicates the beginning of the range of text, where 0 is the first character in the text.
EndPos: Longint Indicates the end of the range of text, where 0 is the first character in the text.
ScrollCaret: Boolean Specifies whether to scroll the caret into view in an edit control.


Description

Call SetSelection to select the indicated range of characters in the rich edit control. If StartPos is the same as EndPos, SetSelection positions the cursor at the StartPos character.
For example, call: SetSelection(0, 0, True); to scroll to the first position of the rich edit control


About

Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page