Bagikan melalui


SpeechMode Enum

Definisi

Menentukan mode interpretasi untuk input ucapan.

public enum class SpeechMode
public enum SpeechMode
type SpeechMode = 
Public Enum SpeechMode
Warisan
SpeechMode

Bidang

Command 1

Input ucapan ditafsirkan sebagai perintah.

Dictation 0

Input ucapan ditafsirkan sebagai dikte.

Indeterminate 2

Mode input ucapan tidak ditentukan.

Contoh

Contoh berikut menunjukkan cara menentukan mode ucapan menggunakan SpeechMode enumerasi.

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

Berlaku untuk

Lihat juga