TCustomRichView.SelectWordAt

<< Click to display table of contents >>

TCustomRichView.SelectWordAt

Selects word at the specified point for copying to clipboard. If there is non text item at this point (such as picture), this item becomes selected.

procedure SelectWordAt(X,Y: TRVCoord);

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

This method repaints document.

In RichViewEdit this method moves the caret to the end of the selected word.

The method generates OnSelect event.

Parameters:

(X,Y) client coordinates (coordinates relative to the top left corner of TRichView window).

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

 

Note: RichView can automatically select double-clicked word, if rvoDblClickSelectsWord is in Options.

 

See also events:

OnRVRightClick;

OnRVDblClick.

See also properties:

Delimiters.

See also methods:

SelectAll;

GetWordAt;

SetSelectionBounds;

GetSelText.

See also methods of TRichViewEdit:

SelectCurrentWord.

See also:

Selecting in RichView document.