CorrectionMode Enumeration
Assembly: Microsoft.Ink (in microsoft.ink.dll)
| Member name | Description | |
|---|---|---|
| NotVisible | The Input Panel and the correction comb are not visible. | |
| PostInsertionCollapsed | The correction comb is shown in the post-insertion collapsed mode. | |
| PostInsertionExpanded | The correction comb is shown in the post-insertion expanded mode. | |
| PreInsertion | The correction comb is shown in the pre-insertion mode. |
When used with the CurrentCorrectionMode property it allows an application to determine the current configuration of the correction comb.
The TextInputPanel object provides detailed information about and control of the correction mode. Knowing the correction mode helps applications determine the current size of the Input Panel. Controlling how the post-insertion correction expands in an application is one way to customize the correction experience in an application.
There are two basic modes in which the correction comb may appear; pre-insertion and post-insertion. The pre-insertion correction comb corrects text before inserting it into an application. Activate the pre-insertion mode by tapping on the pending text that appears below the baseline in the Writing Pad as the user inks.
The post-insertion correction comb is used to correct text after it has been inserted into an application. Activate the post-insertion mode by placing the insertion point in or selecting text that was previously inserted.
post-insertion correction comb may appear either above or below Input Panel or it may appear collapsed or expanded. In the collapsed state the post-insertion correction comb only shows a list of alternates. In the expanded state it includes both the alternates and an area to rewrite the word.
The following example demonstrates the use of CorrectionMode. tip_CorrectionModeChanging is an event handler for the CorrectionModeChanging event. The tip object is an instance of TextInputPanel. The OldMode and CurrentCorrectionMode values are used to set the TextBox.TextTextBox.Text property of a TextBoxTextBox, outputTextBox. OldMode and CurrentCorrectionMode contain one of the CorrectionMode values.
Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.