InputMethod.ImeSentenceMode 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定與這個輸入法關聯之輸入法編輯器的目前句子模式。
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
屬性值
ImeSentenceModeValues 列舉型別的成員,指定句子模式。
預設值是 None。
- 屬性
範例
下列範例示範如何使用 ImeSentenceMode 屬性。
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()