ITextRange::SetPara method (tom.h)

Sets the paragraph attributes of this range to those of the specified ITextPara object.

Syntax

HRESULT SetPara(
  [in] ITextPara *pPara
);

Parameters

[in] pPara

Type: ITextPara*

The paragraph object with the desired paragraph format.

Return value

Type: HRESULT

The method returns an HRESULT value. If the method succeeds, it returns S_OK. If the method fails, it returns one of the following error codes. For more information about COM error codes, see Error Handling in COM.

Return code Description
E_ACCESSDENIED
Text is write-protected.
E_INVALIDARG
pPara is null.
E_OUTOFMEMORY
Out of memory.

Requirements

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

See also

Conceptual

GetPara

ITextRange

Reference

Text Object Model