ITextStoreACP2::SetSelection method (textstor.h)
Selects text within the document. The application must have a read/write lock on the document before calling this method.
HRESULT SetSelection( [in] ULONG ulCount, [in] const TS_SELECTION_ACP *pSelection );
Specifies the number of text selections in pSelection.
Specifies the style, start, and end character positions of the text selected through the TS_SELECTION_ACP structure.
When the start and end character positions are equal, the method places a caret at that character position. There can be only one caret at a time in the document.
This method can return one of these values.
||The method was successful.|
||An unspecified error occurred.|
||The character positions specified are beyond the text in the document.|
||The caller does not have a read/write lock.|
|Minimum supported client||Windows 8 [desktop apps | UWP apps]|
|Minimum supported server||Windows Server 2012 [desktop apps | UWP apps]|