rvico TRichView Reference | TRichView

TCustomRichView.SelectWordAt

Top  Previous  Next

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: Integer);

"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 RichView 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.


TRichView © trichview.com