Viewer.ParentShape Property (Visio Viewer)
Gets the index number of the parent shape of the specified shape in the drawing that is open in Microsoft Visio Viewer. Read-only.
An expression that returns a Viewer object.
The index of the shape whose parent you want to find.
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.