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