SpeechMode Enumeráció

Definíció

Meghatározza a beszédbemenet értelmezési módját.

public enum class SpeechMode
public enum SpeechMode
type SpeechMode = 
Public Enum SpeechMode
Öröklődés
SpeechMode

Mezők

Name Érték Description
Dictation 0

A beszédbemenet diktálásként van értelmezve.

Command 1

A beszédbemenet parancsként van értelmezve.

Indeterminate 2

A beszédbemeneti mód határozatlan.

Példák

Az alábbi példa bemutatja, hogyan adhatja meg a beszédmódot az SpeechMode enumerálás használatával.

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

A következőre érvényes:

Lásd még