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 Unicode string for Delphi/C++Builder 2009, and ANSI string for the older versions of Delphi/C++Builder.

Return value

True if misspelling is found.

See also:

Live spelling check in RichView.


TRichView © trichview.com