Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

ITextStoreAnchor::RequestAttrsTransitioningAtPosition method

Syntax


HRESULT RequestAttrsTransitioningAtPosition(
  [in]  IAnchor *paPos,
  [in]  ULONG cFilterAttrs,
  [in]  const TS_ATTRID *paFilterAttrs,
  [in]  DWORD dwFlags
);

Parameters

paPos [in]

Pointer to the anchor.

cFilterAttrs [in]

Specifies the number of attributes to obtain.

paFilterAttrs [in]

Pointer to the TS_ATTRID data type that specifies the attribute to verify.

dwFlags [in]

Specifies attributes for the call to the ITextStoreAnchor::RetrieveRequestedAttrs method. If this parameter is not set, the method returns the attributes that start at the specified anchor location. Other possible values for this parameter are the following.

ValueMeaning
TS_ATTR_FIND_WANT_END

Obtains the attributes that end at the specified anchor location.

TS_ATTR_FIND_WANT_VALUE

Obtains the value of the attribute in addition to the attribute. The attribute value is put into the varValue member of the TS_ATTRVAL structure during the ITextStoreAnchor::RetrieveRequestedAttrs method call.

 

Return value

This method can return one of these values.

ValueDescription
S_OK

The method was successful.

E_INVALIDARG

paPos is invalid.

 

Remarks

In the sentence, "This is italic text.", the italic attribute starts before the word italic and ends after the word text.

If the flag TS_ATTR_FIND_WANT_END is set in dwFlags, the method would return the italic attribute for the text "italic <anchor>normal", because there is an end transition at the anchor location.

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
ITextStoreAnchor::RetrieveRequestedAttrs
TS_ATTRID
TS_ATTR_* Constants
TS_ATTRVAL

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.