ITextStoreAnchorSink::OnAttrsChange method (textstor.h)

The ITextStoreAnchorSink::OnAttrsChange method is called when the value of one or more text attributes changes.

Syntax

HRESULT OnAttrsChange(
  [in] IAnchor         *paStart,
  [in] IAnchor         *paEnd,
  [in] ULONG           cAttrs,
  [in] const TS_ATTRID *paAttrs
);

Parameters

[in] paStart

Pointer to the start anchor of the range of text that has the attribute change.

[in] paEnd

Pointer to the end anchor of the range of text that has the attribute change.

[in] cAttrs

Specifies the number of attributes in the paAttrs array.

[in] paAttrs

Pointer to an array of TS_ATTRID values that identify the attributes changed.

Return value

This method can return one of these values.

Value Description
S_OK
The method was successful.
E_INVALIDARG
One or more parameters are invalid.

Requirements

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

See also

ITextStoreAnchor::FindNextAttrTransition

ITextStoreAnchor::RequestAttrsAtPosition

ITextStoreAnchor::RequestAttrsTransitioningAtPosition

ITextStoreAnchor::RequestSupportedAttrs

ITextStoreAnchorSink