ImageEn, unit iexRichEdit

TIERichEdit.SelText

TIERichEdit.SelText

Declaration

property SelText: string;

Description

Returns the currently selected text (unformatted).

Example

// Enable clipboard buttons
btnCut.Enabled   := IERichEdit1.SelText <> '';
btnCopy.Enabled  := IERichEdit1.SelText <> '';
btnPaste.Enabled := IERichEdit1.CanPaste;