ImageEn, unit iexRichEdit

TIERichEdit.SetSelection

TIERichEdit.SetSelection


Declaration

procedure SetSelection(StartPos, EndPos: Longint; ScrollCaret: Boolean = True);


Description

Select the text specified by a range of character indexes.
If ScrollCaret is true, the control is scrolled to show the selection

Rich Edit Identifier: EM_EXSETSEL


Example

// Select the first 100 characters
IERichEdit1.SetSelection( 1, 100 );