Class TypingCorrections
Word's AutoFormat As You Type and AutoCorrect, as edits a consumer applies after a keystroke (WQ-0108): smart quotes, dashes and symbols, ordinals, fractions, hyperlinks, automatic lists, borders, and capitals. Each call looks at what was just typed and returns the correction Word would make at that keystroke, or an empty edit; applied as an edit of its own, so one undo takes back the correction and leaves what was typed, as Word's does.
public static class TypingCorrections
- Inheritance
-
TypingCorrections
- Inherited Members
Remarks
Word's own list of misspellings and its symbol entries (arrows, faces) are Word's data and are not included; CommonMisspellings is DocWright's list, applied by Word's rule (WQ-0120).
Properties
- CommonMisspellings
DocWright's list of common English misspellings and what replaces them, keyed in lower case (the default Replacements). Its own list, not Word's: the rule it is applied by is Word's (WQ-0120).
Methods
- AfterCharacter(WordDocument, DocumentPosition, TypingCorrectionOptions?)
The correction for a character just typed: the caret is right after it. A quote is corrected as it is typed; the other corrections when the space after a word is typed (punctuation is part of the word); a list starts on the space after its marker.
- AfterCharacter(WordDocument, DocumentPosition, TypingCorrectionOptions?, IList<TypingCorrection>?)
The correction for a character just typed, as AfterCharacter(WordDocument, DocumentPosition, TypingCorrectionOptions?), adding what each correction did to
made(Word's AutoCorrect Options button: undo it, stop it).
- AfterParagraph(WordDocument, Paragraph, DocumentPosition, TypingCorrectionOptions?)
The correction when Enter ends a paragraph: the word it ends is corrected as a space would, and a paragraph of only
---or===becomes an empty one with a single or double bottom border.
- AfterParagraph(WordDocument, Paragraph, DocumentPosition, TypingCorrectionOptions?, IList<TypingCorrection>?)
The correction when Enter ends a paragraph, as AfterParagraph(WordDocument, Paragraph, DocumentPosition, TypingCorrectionOptions?), adding what each correction did to
made.