TCustomRichViewEdit.GetCurrentMisspelling

<< Click to display table of contents >>

TCustomRichViewEdit.GetCurrentMisspelling

Returns misspelled word in the position of caret, optionally selects it.

function GetCurrentMisspelling(SelectIt: Boolean;

  out Word: TRVUnicodeStringout StyleNo: Integer): Boolean;

(changed in version 18)

Input parameters:

SelectIt if True, the returned word will be selected in the editor.

Output parameters:

Word receives misspelled word.

StyleNo receives text style of misspelled word (index in TextStyles collection of the linked TRVStyle component).

The output parameters are defined only if this method returns True.

Return value

True if misspelling is found.

See also:

Live spelling check in RichView.