Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxCustomSpellChecker.OnAutoCorrect Event

In This Article

Enables you to specify how the automatic correction is applied.

#Declaration

Delphi
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