ITextRange::SetPara method

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

Syntax


HRESULT SetPara(
  [in]  ITextPara *pPara
);

Parameters

pPara [in]

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 codeDescription
E_ACCESSDENIED

Text is write-protected.

E_INVALIDARG

pPara is null.

E_OUTOFMEMORY

Out of memory.

 

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Tom.h

DLL

Msftedit.dll

See also

Reference
ITextRange
GetPara
Conceptual
Text Object Model

 

 

Community Additions

ADD
Show:
© 2014 Microsoft