Applies to
Declaration
property SelText: string;
Description
The SelText property works exactly the same as its counterpart in standard TMemo. It contains the selected part of the control's text. You can use it to determine what the selected text is (the first 255 characters only in the 16 bit version), or you can change the content of the selected text by specifying a new string. If no text is currently selected, the SelText string is inserted at the current caret position.
This property is accessible at run time and has read and write access.
To query only the word at the caret position, use property CurrentWord.
See also
SelStart property
SelLength property