InputMethod.Current InputMethod.Current InputMethod.Current InputMethod.Current Property

定義

現在のコンテキストに関連付けられている、現在アクティブな入力方法への参照を取得します。Gets a reference to any currently active input method associated with the current context.

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

プロパティ値

参照、 InputMethod 、現在のコンテキストに関連付けられているオブジェクトまたはnullアクティブな入力方法がない場合。A reference to an InputMethod object associated with the current context, or null if there is no active input method.

このプロパティには既定値はありません。This property has no default value.

次の例では、使用する方法、Currentプロパティ。The following example demonstrates how to use the Current property.

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()

適用対象