Share via


InputMethod.Current Özellik

Tanım

Geçerli bağlamla ilişkili etkin olan herhangi bir giriş yöntemine başvuru alır.

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

Özellik Değeri

Geçerli bağlamla ilişkili bir InputMethod nesneye başvuru veya etkin giriş yöntemi yoksa null .

Bu özelliğin varsayılan değeri yok.

Örnekler

Aşağıdaki örnekte özelliğinin nasıl kullanılacağı gösterilmektedir 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()

Şunlara uygulanır