ISpeechRecoGrammar SetTextSelection Method

Microsoft Speech SDK

Intelligent Interface Technologies Home Page Microsoft Speech SDK

Speech Automation 5.1

Interface: ISpeechRecoGrammar

SetTextSelection Method


The SetTextSelection method sets the range of text selection information in a WordSequenceData buffer.

The SetWordSequenceData method sends application-specific data to the speech recognition (SR) engine for recognition. The SetTextSelection method describes the part of that text which has been selected by the user with a mouse or keyboard.


ISpeechRecoGrammar.SetTextSelection(
     Info As SpTextSelectionInformation
)

Parameters

Info
An SpTextSelectionInformation object which specifies the text selection range.

Return Value

None.


Example

For an example of the use of the SetTextSelection method, see the SetWordSequenceData section.