Skip to main content

TdxCustomSpellChecker.OnAddWord Event

Enables you to control how words are added to user-defined dictionaries.

Declaration

property OnAddWord: TdxSpellCheckerAddWordEvent read; write;

Remarks

Fires when AWord is about to be added to AUserDictionary.

Since this event is raised by the spell checker’s AddWordToUserDictionary method, use the AUserDictionary‘s AddWord method within the OnAddWord event handler instead (if required), to prevent the infinite loop.

AHandled specifies whether the default behavior is required. Set AHandled to True, to prevent the default code execution (setting AHandled to True prevents the default addition of AWord to AUserDictionary).

See Also