ITfPropertyStore::Shrink method (msctf.h)

Called when the text that the property store applies to is truncated.

Syntax

HRESULT Shrink(
  [in]  ITfRange *pRangeNew,
  [out] BOOL     *pfFree
);

Parameters

[in] pRangeNew

Pointer to an ITfRange interface that contains the truncated range.

[out] pfFree

Pointer to a BOOL variable that receives a value that indicates if the property store should be retained. Receives a nonzero value if the property store should be retained or zero if the property store should be discarded. If the property store is discarded, the TSF manager will set the property value to VT_EMPTY and release the property store.

Return value

This method can return one of these values.

Value Description
S_OK
The method was successful.

Remarks

If this method returns a value other than S_OK, the property store is discarded.

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

ITfPropertyStore

ITfRange