TCustomRichViewEdit.SelectCurrentWord

<< Click to display table of contents >>

TCustomRichViewEdit.SelectCurrentWord

Selects word at the position of caret. If there is non text item at the caret position, this method does nothing.

procedure SelectCurrentWord;

This method repaints document, moves the caret to the end of word and generates OnSelect event.

"Word" is defined as a part of string between delimiters. Delimiters are listed in Delimiters property.

This method must be called only when the document is formatted.

 

See also methods:

SelectWordAt;

GetSelText;

SelectCurrentLine.

See also:

Selecting in RichView document.