TdxCustomSpellChecker.OnAutoCorrect Event
Enables you to specify how the automatic correction is applied.
Declaration
property OnAutoCorrect: TdxSpellCheckerAutoCorrectEvent read; write;
Remarks
Sender specifies the spell checker that performs the spell check.
ARule specifies the rule (identified by its class) to be applied to the text being corrected. Available classes (TdxSpellCheckerAutoCorrectCustomRule descendants) are listed in the table below.
Class | Rule |
---|---|
TdxSpellCheckerCorrectCapsLockRule | Corrects words typed in an advertent case. |
TdxSpellCheckerCorrectInitialCapsRule | Corrects first two letters typed in the upper case. |
TdxSpellCheckerCorrectReplaceTextAsYouTypeRule | Automatically replaces text. |
TdxSpellCheckerCorrectSentenceCapsRule | Capitalizes the first letter of a sentence, if this letter is in the lower case. |
AWordRange contains information on the current replacement (a TdxSpellCheckerAutoCorrectWordRange record). Refer to the record description to learn about its fields.
AAllow specifies whether correction is allowed. Set AAllow to True, to allow correction.
See Also