• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 17. Getting Data from Visio Draw... > Getting Window Information in Visio

Getting Window Information in Visio

The Visio Application object has a Windows Collection property. This property is the Windows collection object. It includes all windows within the Visio environment that might be open at any given time: drawing windows, ShapeSheet windows, stencil windows, and icon edit windows. Keep in mind that as the user opens and closes windows, and as the user shifts focus from one window to another, the Windows collection object's count may increase or decrease by one or more items.

You can iterate through a Windows collection in the usual way, but more often you will be interested in a particular type of window. The Window object's Type property returns the window type. If the returned window type is a drawing window, you will also want to check the SubType property. The window types are visDrawing, visSheet, visStencil, and visIcon. The subtypes are visPagWin, visMasterWin, visPageGroupWin, and visMasterGroupWin.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint