Parent property

Microsoft Visio Developer Reference

Parent property

   Example   

Determines the parent of an object.

Version added

3.0

Syntax

objRet = object.Parent

objRet

The parent of the object.

object

Required. An expression that returns an object in the Applies to list.

Remarks

In general, an object's parent is the object that contains it. For example, the parent of a Menu object is the Menus collection that contains the Menu object, or the parent of a Window object is the Windows collection that contains the Window object.