ITfComposition::GetRange method (msctf.h)

Obtains a range object that contains the text covered by the composition.

Syntax

HRESULT GetRange(
  [out] ITfRange **ppRange
);

Parameters

[out] ppRange

Pointer to an ITfRange interface pointer that receives the range object. It is possible that the range will have zero length.

Return value

This method can return one of these values.

Value Description
S_OK
The method was successful.
E_FAIL
An unspecified error occurred.
E_INVALIDARG
ppRange is invalid.
E_OUTOFMEMORY
A memory allocation failure occurred.
E_UNEXPECTED
The composition has already terminated.

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

ITfComposition interface, ITfRange interface