InputMethod.Current プロパティ

定義

現在のコンテキストに関連付けられている現在アクティブな入力方法への参照を取得します。

public:
 static property System::Windows::Input::InputMethod ^ Current { System::Windows::Input::InputMethod ^ get(); };
public static System.Windows.Input.InputMethod Current { get; }
static member Current : System.Windows.Input.InputMethod
Public Shared ReadOnly Property Current As InputMethod

プロパティ値

現在の InputMethod コンテキストに関連付けられているオブジェクトへの参照。アクティブな入力メソッドがない場合は null

このプロパティには既定値はありません。

次の例では、 プロパティを使用する方法を Current 示します。

InputMethod.SetPreferredImeState(myTextBox, InputMethodState.On);
InputMethod.Current.ImeSentenceMode = ImeSentenceModeValues.Automatic;
InputMethod.Current.HandwritingState = InputMethodState.On;
InputMethod.Current.SpeechMode = SpeechMode.Dictation;
InputScope myInputScope = new InputScope();
myInputScope.RegularExpression = "W|P|F";
InputMethod.SetInputScope(myTextBox, myInputScope);
tb6.Text = "Configuration UI Available?: " + InputMethod.Current.CanShowConfigurationUI.ToString();
InputMethod.SetPreferredImeState(myTextBox, InputMethodState.On)
InputMethod.Current.ImeSentenceMode = ImeSentenceModeValues.Automatic
InputMethod.Current.HandwritingState = InputMethodState.On
InputMethod.Current.SpeechMode = SpeechMode.Dictation
Dim myInputScope As New InputScope()
myInputScope.RegularExpression = "W|P|F"
InputMethod.SetInputScope(myTextBox, myInputScope)
tb6.Text = "Configuration UI Available?: " & InputMethod.Current.CanShowConfigurationUI.ToString()

適用対象