Paragraph Method

Returns a Paragraph object that corresponds to a paragraph with the specified index in the paragraph collection of the shape.

Applies to: Shape object

Syntax

[[Set] paragraphRet =] object.Paragraph ( index )

The Paragraph 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 in the paragraph collection of the shape.
paragraphRet Optional. A Paragraph type variable.

Remarks

If index is less than 1 or greater than the number of paragraphs of the shape, the Paragraph method returns Nothing. To find out the number of paragraphs of the shape, use the ParagraphsNum method.

 

See Also

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