IAnchor::ShiftTo method (textstor.h)

The IAnchor::ShiftTo method shifts the current anchor to the same position as another anchor.

Syntax

HRESULT ShiftTo(
  [in] IAnchor *paSite
);

Parameters

[in] paSite

Anchor occupying a position that the current anchor will be moved to.

Return value

This method can return one of these values.

Value Description
S_OK
The method was successful.
E_FAIL
An IAnchor interface pointer to the paSite anchor could not be obtained, or memory is too low to safely complete the operation.
E_INVALIDARG
paSite is invalid.

Remarks

Implementing this method is usually more efficient than an equivalent IAnchor::Shift operation.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header textstor.h
DLL Msctf.dll
Redistributable TSF 1.0 on Windows 2000 Professional

See also

IAnchor

IAnchor::Shift