ITextHost::TxGetCharFormat method

Requests the text host's default character format.

Syntax

HRESULT TxGetCharFormat(
  const CHARFORMATW **ppCF
);

Parameters

ppCF

Type: const CHARFORMAT**

The default character format.

Return Value

Type: HRESULT

Return S_OK if the method succeeds.

Return the following COM error code if the method fails. For more information on COM error codes, see Error Handling in COM.

Return code Description
E_NOTIMPL
Not implemented.

Remarks

The text host retains ownership of the CHARFORMAT returned. However, the pointer returned must remain valid until the text host notifies the text services object through OnTxPropertyBitsChange that the default character format has changed.

Requirements

   
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header textserv.h
DLL Msftedit.dll

See Also

CHARFORMAT

Conceptual

ITextHost

OnTxPropertyBitsChange

Reference

Windowless Rich Edit Controls