classafFancomSapi::ISpeechGrammarRules
sys::Obj afFancom::Collection afFancomSapi::ISpeechGrammarRules
Represents a collection of ISpeechGrammarRule objects.
http://msdn.microsoft.com/en-us/library/ee125292%28v=vs.85%29.aspx
@clsid {6FFA3B44-FC2D-40D1-8AFC-32911C7F1AD1}
- add
ISpeechGrammarRule? add(Str? ruleName, SpeechRuleAttributes? attributes, Int? ruleId := (Int?)0)Creates a new grammar rule in an ISpeechGrammarRules collection.
- asList
virtual override ISpeechGrammarRule?[] asList()- commit
Void commit()Compiles the rules in the rule collection.
- commitAndSave
Variant commitAndSave(Str? errorText)Compiles the rules in the rule collection and saves the result.
- dynamic
Bool? dynamic { private set }Determines whether the grammar rules contained in the collection were created as dynamic.
- find
virtual override ISpeechGrammarRule? find(|Obj?,Int->Bool callback)- findRule
ISpeechGrammarRule? findRule(Variant? ruleNameOrId)Returns a grammar rule, specified by Name or by ID.
- item
virtual override ISpeechGrammarRule? item(Int index)- makeFromDispatch
new makeFromDispatch(Dispatch dispatch)