ParagraphsNum Method

Returns the number of paragraphs in the paragraph collection of the shape.

Applies to: Shape object

Syntax

[[Let] countRet =] object.ParagraphsNum ()

The ParagraphsNum method syntax has these parts:

Part Description
object Required. An expression that returns a Shape object.
countRet Optional. A Long type variable.

Remarks

If the shape doesn't contain text, it doesn't contain any paragraphs, so in this case the ParagraphsNum method returns 0.

 

See Also

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