VisWinTypes Constants

Visio Automation Reference

Type and ID codes returned by Window.Type, Window.SubType, and Window.ID.

Constant Value Description

visAnchorBarAddon

10

Window created by an add-on that has tabs at the bottom when merged (floating, anchored, or docked window)

visAnchorBarBuiltIn

6

Visio built-in window that has tabs at the bottom when merged—presently, the Custom Properties, Size & Position, Drawing Explorer, Master Explorer, and Pan & Zoom windows (floating, anchored, or docked windows).

visApplication

5

Microsoft Office Visio application window.

visDockedStencilAddon

11

An add-on window that has docked stencil behavior.

visDockedStencilBuiltIn

7

Stencil window docked in a drawing window.

visDrawing

1

Drawing window (MDI frame window).

visDrawingAddon

8

Drawing window created by an add-on (MDI frame window).

visIcon

4

Icon editing window (MDI frame window).

visInvalWinID

-1

Window has no ID.

visMasterGroupWin

96

A group editing window of a group in a master.

visMasterWin

64

A master drawing page window.

visPageGroupWin

160

A group editing window of a group on a page.

visPageWin

128

A drawing window showing a page.

visSheet

3

ShapeSheet window (MDI frame window).

visStencil

2

Stencil window (MDI frame window).

visStencilAddon

9

Add-on window that has stencil window behavior.

visWinIDCustProp

1658

When Window.Type is visAnchorBarBuiltIn, Custom Properties window.

visWinIDDrawingExplorer

1721

When Window.Type is visAnchorBarBuiltIn, Drawing Explorer window.

visWinIDExternalData

2044

When Window.Type is visAnchorBarBuiltIn, External Data window.

visWinIDFormulaTracing

1781

When Window.Type is visAnchorBarBuiltIn, ShapeSheet Formula Tracing window.

visWinIDMasterExplorer

1916

When Window.Type is visAnchorBarBuiltIn, Master Explorer window in master editing window.

visWinIDPanZoom

1653

When Window.Type is visAnchorBarBuiltIn, Pan & Zoom window.

visWinIDShapeSearch

1669

When Window.Type is visAnchorBarBuiltIn, Shapes window.

visWinIDSizePos

1670

When Window.Type is visAnchorBarBuiltIn, Size & Position window.

visWinIDStencilExplorer

1796

When Window.Type is visAnchorBarBuiltIn, Drawing Explorer window in MDI stencil window.

visWinOther

0

Unknown window type.