Table of contents
Collapse the table of content
Expand the table of content

Viewer.ParentShape Property (Visio Viewer)

office 365 dev account|Last Updated: 6/12/2017
1 Contributor

Gets the index number of the parent shape of the specified shape in the drawing that is open in Microsoft Visio Viewer. Read-only.


expression. ParentShape( ShapeIndex)

_expression_An expression that returns a Viewer object.


NameRequired/OptionalData TypeDescription
ShapeIndexRequiredLongThe index of the shape whose parent you want to find.

Return Value



The expression "parent shape" refers to the group shape of which the specified shape is a part.

The collection of shapes is one-based, so the index of the first shape in the collection is 1.


The following code shows how to get the parent of the first shape on the current page in the drawing that is open in Visio Viewer.

Debug.Print vsoViewer.ParentShape(1)
© 2018 Microsoft