InputMethod.ImeSentenceMode Właściwość

Definicja

Pobiera lub ustawia bieżący tryb zdania dla edytora metod wejściowych skojarzonych z tą metodą wejściową.

public:
 property System::Windows::Input::ImeSentenceModeValues ImeSentenceMode { System::Windows::Input::ImeSentenceModeValues get(); void set(System::Windows::Input::ImeSentenceModeValues value); };
public System.Windows.Input.ImeSentenceModeValues ImeSentenceMode { [System.Security.SecurityCritical] get; [System.Security.SecurityCritical] set; }
public System.Windows.Input.ImeSentenceModeValues ImeSentenceMode { get; set; }
[<get: System.Security.SecurityCritical>]
[<set: System.Security.SecurityCritical>]
member this.ImeSentenceMode : System.Windows.Input.ImeSentenceModeValues with get, set
member this.ImeSentenceMode : System.Windows.Input.ImeSentenceModeValues with get, set
Public Property ImeSentenceMode As ImeSentenceModeValues

Wartość właściwości

Element członkowski wyliczenia ImeSentenceModeValues określający tryb zdania.

Wartość domyślna to None.

Atrybuty

Przykłady

W poniższym przykładzie pokazano, jak używać ImeSentenceMode właściwości.

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

Dotyczy

Zobacz też