ParentWindow property

Microsoft Visio Developer Reference

ParentWindow property

   Example   

Returns the Window object that is the parent of another Window object.

Version added

2000

Syntax

objRet = object.ParentWindow

objRet

The parent Window object.

object

Required. An expression that returns a Window object.

Remarks

ParentWindow returns nothing and raises no exception if the window is a top level window. A top level window is a member of the Windows collection of an Application object.

Use the Parent property of a Window object to get the Windows collection to which a Window object belongs.