CorrectionMode - перечисление
Обновлен: Ноябрь 2007
Specifies the correction modes of the Tablet PC Input Panel.
Пространство имен: Microsoft.Ink.TextInput
Сборка: Microsoft.Ink (в Microsoft.Ink.dll)
Синтаксис
'Декларация
Public Enumeration CorrectionMode
'Применение
Dim instance As CorrectionMode
public enum CorrectionMode
public enum class CorrectionMode
public enum CorrectionMode
public enum CorrectionMode
Члены
Имя члена | Описание | |
---|---|---|
NotVisible | The Input Panel and the correction comb are not visible. | |
PreInsertion | The correction comb is shown in the pre-insertion mode. | |
PostInsertionCollapsed | The correction comb is shown in the post-insertion collapsed mode. | |
PostInsertionExpanded | The correction comb is shown in the post-insertion expanded 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.Text property of a TextBox, outputTextBox. OldMode and CurrentCorrectionMode contain one of the CorrectionMode values.
Sub tip_CorrectionModeChanging(ByVal sender As Object, ByVal e As CorrectionModeChangeEventArgs)
outputTextBox.Text += "Old Correction Mode is " + e.OldMode.ToString() + Environment.NewLine
outputTextBox.Text += "Current Correction Mode is " + tip.CurrentCorrectionMode.ToString() + Environment.NewLine
End Sub
void tip_CorrectionModeChanging(object sender, CorrectionModeChangeEventArgs e)
{
outputTextBox.Text += "Old Correction Mode is " + e.OldMode + Environment.NewLine;
outputTextBox.Text += "Current Correction Mode is " + tip.CurrentCorrectionMode + Environment.NewLine;
}
Платформы
Windows Vista, Windows XP с пакетом обновления 2 (SP2), Windows Server 2003
Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.
Сведения о версии
.NET Framework
Поддерживается в версии: 3.0