ITfRange::ShiftEndToRange method (msctf.h)
Moves the end anchor of this range to an anchor within another range.
HRESULT ShiftEndToRange( [in] TfEditCookie ec, [in] ITfRange *pRange, [in] TfAnchor aPos );
Pointer to an ITfRange interface that contains the anchor that the end anchor is moved to.
Contains one of the TfAnchor values that specify which anchor of pRange the end anchor will get moved to.
This method can return one of these values.
||The method was successful.|
||pRange is invalid.|
||An unspecified error occurred.|
||The edit context identified by ec does not have a read-only lock.|
The start and end positions of a range are called anchors.
If the shift operation causes the range end anchor to move past the start anchor, the start anchor is moved to the same location as the end anchor.
This method is more efficient than ITfRange::ShiftEnd and should be used.
|Minimum supported client||Windows 2000 Professional [desktop apps | UWP apps]|
|Minimum supported server||Windows 2000 Server [desktop apps | UWP apps]|
|Redistributable||TSF 1.0 on Windows 2000 Professional|