Help Center

CTextDocument2.SetDocumentFontmethod

Sets the default paragraph formatting for this instance of the Text Object Model (TOM) engine.

Windowsmethoddoc-orphan
No implementation located. This member is documented, but the source scan found no matching declaration. It is likely declared in a header this scan does not resolve, or provided by a macro.

Syntax

FUNCTION SetDocumentFont (BYVAL pFont AS ITextFont2 PTR) AS HRESULT

Parameters

NameDescription
pFontThe font object that provides the default character formatting.

Description

Sets the default character formatting for this instance of the Text Object Model (TOM) engine.

Remarks

You can also set the default character formatting by calling the Reset method of the ITextFont interface with a value of tomDefault.

Reference