ITfEditRecord::GetTextAndPropertyUpdates method (msctf.h)

Obtains an enumerator that contains a collection of range objects that cover the specified properties and/or text that changed during the edit session.

Syntax

HRESULT GetTextAndPropertyUpdates(
  [in]  DWORD         dwFlags,
  [in]  const GUID    **prgProperties,
  [in]  ULONG         cProperties,
  [out] IEnumTfRanges **ppEnum
);

Parameters

[in] dwFlags

Contains a combination of the following values that specify the behavior of this method.

Value Meaning
0
Specifies that the method will obtain a collection of range objects that cover the specified properties changed during the edit session. prgProperties cannot be NULL and cProperties must be greater than zero.
TF_GTP_INCL_TEXT
Specifies that the method will obtain the collection of range objects that cover the text changed during the edit session.

[in] prgProperties

Pointer to an array of GUID values that identify the properties to search for changes for. This method searches the properties that changed during the edit session and, if the property is contained in this array, a range object that covers the property that changed is added to ppEnum.

This array must be at least cProperties elements in size.

This parameter is ignored if dwFlags contains TF_GTP_INCL_TEXT and cProperties is zero.

[in] cProperties

Specifies the number of elements in the prgProperties array.

This parameter can be zero if dwFlags contains TF_GTP_INCL_TEXT. This indicates that no property changes are obtained.

[out] ppEnum

Pointer to an IEnumTfRanges interface pointer that receives the enumerator object.

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.
E_OUTOFMEMORY
A memory allocation failure occurred.

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 msctf.h
DLL Msctf.dll
Redistributable TSF 1.0 on Windows 2000 Professional

See also

IEnumTfRanges

ITfEditRecord