rvico TRichView Reference | TRichViewEdit

TCustomRichViewEdit.GetCurrentMisspelling

Top  Previous  Next

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

function GetCurrentMisspelling(SelectIt: Boolean;

  var Word: Stringvar StyleNo: Integer): Boolean;

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.

unicode Unicode note: Word parameter is an ANSI string. If the misspelled word is in Unicode text item, conversion from Unicode to ANSI is performed.

Return value

True if misspelling is found.

See also:

Live spelling check in RichView.


RichView © Sergey Tkachenko