Share via


Note

Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.

Microsoft Speech Platform

ISpRecoGrammar::SetTextSelection

ISpRecoGrammar::SetTextSelection sets the current text selection and insertion point information. Applications built on the Speech Platform will typically not use this method.

<pre IsFakePre="true" xmlns="http://www.w3.org/1999/xhtml"> <strong>HRESULT SetTextSelection(</strong> <strong>const</strong> <a runat="server" href="jj127887(v=msdn.10).md"><strong>SPTEXTSELECTIONINFO</strong></a> *<em>pInfo</em> <strong>);</strong> </pre>

Parameters

  • pInfo
    [in] Address of the SPTEXTSELECTIONINFO structure that contains the text selection and insertion point information.

Return Values

Value Description
S_OK Function completed successfully.
E_INVALIDARG One or more parameters are invalid.
FAILED(hr) Appropriate error message.