ITfRangeACP::SetExtent method (msctf.h)

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

Syntax

HRESULT SetExtent(
  LONG acpAnchor,
  LONG cch
);

Parameters

acpAnchor

Contains the application character position of the range start anchor.

cch

Contains 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

   
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::GetExtent