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
[[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. |
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.