GetParagraphIndex Method

Returns the paragraph index in the paragraph collection of the shape by the specified character index in the text string of the shape.

Applies to: Shape object

Syntax

[[Let] paragraphIndexRet =] object.GetParagraphIndex ( symbolIndex )

The GetParagraphIndex method syntax has these parts:

Part Description
object Required. An expression that returns a Shape object.
symbolIndex Required. An expression that returns a Long value. The index of the character in the text string of the shape.
paragraphIndexRet Optional. A Long type variable.

Remarks

If index is less than 1 or greater than the number of characters in the text string of the shape, the GetParagraphIndex method returns 0.

 

See Also

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