Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ITextStoreAnchor::FindNextAttrTransition method

The ITextStoreAnchor::FindNextAttrTransition method finds the location in the text stream where a transition occurs in an attribute value. The specified attribute to check is application-dependent.

Syntax


HRESULT FindNextAttrTransition(
  [in]        IAnchor   *paStart,
  [in]        IAnchor   *paHalt,
  [in]        ULONG     cFilterAttrs,
  [in]  const TS_ATTRID *paFilterAttrs,
  [in]        DWORD     dwFlags,
  [out]       BOOL      *pfFound,
  [out]       LONG      *plFoundOffset
);

Parameters

paStart [in]

Pointer to the anchor position at the start of a range to search for an attribute transition.

paHalt [in]

Pointer to the anchor position at the end of a range to search for an attribute transition.

cFilterAttrs [in]

Specifies the number of attributes to check.

paFilterAttrs [in]

Pointer to the TS_ATTRID data type that specifies the attribute to check. Pre-defined attributes are given in tsattrs.h.

dwFlags [in]

Specifies the direction to search for an attribute transition. By default, the method searches forward.

ValueMeaning
TS_ATTR_FIND_BACKWARDS

The method searches backward in the text stream.

TS_ATTR_FIND_UPDATESTART

The method positions the input anchor paStart at the next attribute transition, if one is found. Otherwise the input anchor is not modified.

TS_ATTR_FIND_WANT_OFFSET

The plFoundOffset parameter receives the character offset of the attribute transition from paStart.

 

pfFound [out]

Receives a Boolean value of TRUE if an attribute transition was found, otherwise FALSE is returned.

plFoundOffset [out]

Receives the character offset of the attribute transition from the start anchor paStart.

Return value

This method can return one of these values.

ValueDescription
S_OK

The method was successful.

E_INVALIDARG

paStart and/or paHalt are invalid.

TS_E_INVALIDPOS

The character positions specified are beyond the text in the document.

 

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps | Windows Store apps]

Minimum supported server

Windows 2000 Server [desktop apps | Windows Store apps]

Redistributable

TSF 1.0 on Windows 2000 Professional

Header

Textstor.h

IDL

Textstor.idl

DLL

Msctf.dll

See also

ITextStoreAnchor
TS_ATTRID
TS_ATTR_* Constants

 

 

Show:
© 2017 Microsoft