Grammar Property
Gets or sets a GrammarControlSettings control that sets property values of Grammar controls that reference it. Read/write.
Usage
Get value: | GrammarControlSettings = SpeechControlSettingsItem.Grammar; |
Set value: | SpeechControlSettingsItem.Grammar = GrammarControlSettings; |
Data type: | GrammarControlSettings |
Required: | No |
Remarks
The GrammarControlSettings control can set the following properties of the Grammar control:
Example
<form id="Form1" method="post" runat="server">
...
<speech:SpeechControlSettings ID="AllSettings" runat="server">
<Items>
<speech:SpeechControlSettingsItem ID="Settings1" runat="server">
...
<QA ... >
...
<Grammar Lang="en-US" Type="application/srgs+xml"/>
<QA/>
...
</speech:SpeechControlSettingsItem>
</Items>
</speech:SpeechControlSettings>
...
<speech:QA Settings="Settings1" runat="server">
<speech:Grammar ... />
</speech:QA>
...
</form>
See Also
SpeechControlSettingsItem Class | SpeechControlSettingsItem Constructor | SpeechControlSettingsItem Members | SpeechControlSettingsItem Properties | SpeechControlSettingsItem Methods | SpeechControlSettingsItem Events | SpeechControlSettingsItem Remarks