RemoveParagraph Method

Removes a paragraph with the specified index from the paragraph collection of the shape, and returns the number of remaining paragraphs.

Applies to: Shape object

Syntax

[[Let] countRet =] object.RemoveParagraph ( index )

The RemoveParagraph method syntax has these parts:

Part Description
object Required. An expression that returns a Shape object.
index Required. An expression that returns a Long value. The index of the paragraph to be deleted in the paragraph collection of the shape.
countRet Optional. A Long type variable.

Remarks

If index is less than 1 or greater than the number of paragraphs of the shape, the RemoveParagraph method doesn't delete anything and returns the current number of paragraphs of the shape. To find out the number of paragraphs of the shape, use the ParagraphsNum method.

 

See Also

GetParagraphIndex method, Paragraph method, ParagraphsNum method, SetParaAfterSpacing method, SetParaBeforeSpacing method, SetParaFirstInd method, SetParaHAlign method, SetParaLeftInd method, SetParaLineSpacing method, SetParaRightInd method, Paragraph object