ITextDocument2::SetDocumentPara method (tom.h)

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

Syntax

HRESULT SetDocumentPara(
  [in] ITextPara2 *pPara
);

Parameters

[in] pPara

Type: ITextPara2*

The paragraph object that provides the default paragraph formatting

Return value

Type: HRESULT

If the method succeeds, it returns NOERROR. Otherwise, it returns an HRESULT error code.

Remarks

You can also set the default paragraph formatting by calling ITextPara::Reset(tomDefault).

Requirements

Requirement Value
Minimum supported client Windows 8 [desktop apps only]
Minimum supported server Windows Server 2012 [desktop apps only]
Target Platform Windows
Header tom.h
DLL Msftedit.dll

See also

ITextDocument2

ITextDocument2::GetDocumentPara