ImeSentenceModeValues 列舉

定義

指定輸入方法所執行之句子轉換的模式。

此列舉支援其成員值的位元組合。

public enum class ImeSentenceModeValues
[System.Flags]
public enum ImeSentenceModeValues
[<System.Flags>]
type ImeSentenceModeValues = 
Public Enum ImeSentenceModeValues
繼承
ImeSentenceModeValues
屬性

欄位

Automatic 4

該輸入方法自動使用句子轉換方法。

Conversation 16

該輸入方法使用對話樣式句子轉換。

DoNotCare -2147483648

該輸入方法未設定所使用的句子轉換方法,實際的句子轉換模式不確定。

None 0

該輸入方法不執行任何句子轉換。

PhrasePrediction 8

該輸入方法使用片語預測句子轉換。

PluralClause 1

該輸入方法使用複數子句句子轉換。

SingleConversion 2

該輸入方法使用單一 Kanji/Hanja 句子轉換。

範例

下列範例示範如何使用 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()

適用於

另請參閱