Skip to main content

InsertParagraph

Inserts a paragraph at the specified position.

Syntax

expression.InsertParagraph(paragraph, sPosition, beRNewPara);

expression - A variable that represents a ApiParagraph class.

Parameters

NameRequired/OptionalData typeDefaultDescription
paragraphRequiredstring | ApiParagraphText or paragraph.
sPositionRequiredstringThe position where the text or paragraph will be inserted ("before" or "after" the paragraph specified).
beRNewParaRequiredbooleanDefines if this method returns a new paragraph (true) or the current paragraph (false).

Returns

ApiParagraph | null