CorrectionModeChangeEventArgs.NewMode 屬性
取得輸入面板變更後的修正模式。
命名空間: Microsoft.Ink.TextInput
組件: Microsoft.Ink (在 Microsoft.Ink.dll 中)
語法
'宣告
Public ReadOnly Property NewMode As CorrectionMode
'用途
Dim instance As CorrectionModeChangeEventArgs
Dim value As CorrectionMode
value = instance.NewMode
public CorrectionMode NewMode { get; }
public:
property CorrectionMode NewMode {
CorrectionMode get ();
}
/** @property */
public CorrectionMode get_NewMode()
public function get NewMode () : CorrectionMode
屬性值
型別:Microsoft.Ink.TextInput.CorrectionMode
輸入面板變更後的修正模式。
範例
以下範例將說明 NewMode 的用法。tip_CorrectionModeChanged 是 CorrectionModeChanged 事件的事件處理常式。tip 物件是 TextInputPanel 的執行個體。NewMode 和 CurrentCorrectionMode 值是用來設定名為 outputTextBox 之 TextBox (英文) 的 TextBox.Text (英文) 屬性。NewMode 和 CurrentCorrectionMode 包含其中一個 CorrectionMode 值。
Sub tip_CorrectionModeChanged(ByVal sender As Object, ByVal e As CorrectionModeChangeEventArgs)
outputTextBox.Text += "New Correction Mode is " + e.NewMode.ToString() + Environment.NewLine
outputTextBox.Text += "Current Correction Mode is " + tip.CurrentCorrectionMode.ToString() + Environment.NewLine
End Sub
void tip_CorrectionModeChanged(object sender, CorrectionModeChangeEventArgs e)
{
outputTextBox.Text += "New Correction Mode is " + e.NewMode + Environment.NewLine;
outputTextBox.Text += "Current Correction Mode is " + tip.CurrentCorrectionMode + Environment.NewLine;
}
平台
Windows Vista, Windows XP SP2, Windows Server 2003
.NET Framework 和 .NET Compact Framework 並不支援各種平台的所有版本。如需支援平台版本的相關資訊,請參閱 .NET Framework 系統需求。
版本資訊
.NET Framework
支援版本:3.0
請參閱
參考
CorrectionModeChangeEventArgs 類別