This topic has not yet been rated - Rate this topic

IAnchor::ShiftRegion method

Syntax


HRESULT ShiftRegion(
  [in]   DWORD dwFlags,
  [in]   TsShiftDir dir,
  [out]  BOOL *pfNoRegion
);

Parameters

dwFlags [in]

Bitfields that are used to control anchor repositioning around hidden text, or to avoid actual repositioning of the anchor.

ValueMeaning
TS_SHIFT_COUNT_HIDDEN

Specifies that the anchor will be shifted to the next region boundary, including the boundary of a hidden text region. If not set, the anchor will be shifted past any adjacent hidden text until a region of visible text is found.

TS_SHIFT_COUNT_ONLY

The anchor is not shifted.

 

dir [in]

Contains one of the TsShiftDir values that specifies which adjacent region the anchor is moved to.

ValueMeaning
TS_SD_BACKWARD

Specifies that the anchor will be moved to the region immediately preceding a range of text.

TS_SD_FORWARD

Specifies that the anchor will be moved to the region immediately following a range of text.

 

pfNoRegion [out]

Boolean value that specifies whether a shift of the anchor occurred.

ValueMeaning
TRUE

The shift failed, and the anchor was not repositioned.

FALSE

The shift succeeded.

 

Return value

This method can return one of these values.

ValueDescription
S_OK

The method was successful.

E_FAIL

The shift failed.

E_INVALIDARG

An input parameter value is invalid.

 

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Redistributable

TSF 1.0 on Windows 2000 Professional

Header

Textstor.h

IDL

Textstor.idl

DLL

Msctf.dll

See also

IAnchor
TsShiftDir
IAnchor::Shift
TS_SHIFT_* Constants

 

 

Send comments about this topic to Microsoft

Build date: 10/27/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.