ITfRangeACP::GetExtent method (msctf.h)

Obtains the application character position and length of the range object.

Syntax

HRESULT GetExtent(
  [out] LONG *pacpAnchor,
  [out] LONG *pcch
);

Parameters

[out] pacpAnchor

Pointer to a LONG value that receives the application character position of the range start anchor.

[out] pcch

Pointer to a LONG value that receives the number of characters in the range.

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_FAIL
An unspecified error occurred.

Remarks

This method should only be called by the owner of the ACP-based context because the character position and range length will only have meaning to a caller that recognizes the text store implementation.

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

ITfRangeACP

ITfRangeACP::SetExtent