ImeSentenceModeValues 列舉
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
指定輸入方法所執行之句子轉換的模式。
此列舉支援其成員值的位元組合。
public enum class ImeSentenceModeValues
C#
[System.Flags]
public enum ImeSentenceModeValues
[<System.Flags>]
type ImeSentenceModeValues =
Public Enum ImeSentenceModeValues
- 繼承
- 屬性
名稱 | 值 | Description |
---|---|---|
Automatic | 4 | 該輸入方法自動使用句子轉換方法。 |
Conversation | 16 | 該輸入方法使用對話樣式句子轉換。 |
DoNotCare | -2147483648 | 該輸入方法未設定所使用的句子轉換方法,實際的句子轉換模式不確定。 |
None | 0 | 該輸入方法不執行任何句子轉換。 |
PhrasePrediction | 8 | 該輸入方法使用片語預測句子轉換。 |
PluralClause | 1 | 該輸入方法使用複數子句句子轉換。 |
SingleConversion | 2 | 該輸入方法使用單一 Kanji/Hanja 句子轉換。 |
下列範例示範如何使用 ImeSentenceMode 屬性。
C#
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()
產品 | 版本 |
---|---|
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9 |