Type property
Returns the type of the object.
Version added
2.0
Syntax
| |
retVal |
Integer. The type of the Shape or Window object. |
object |
Required. An expression that returns a Shape or Window object. |
Remarks
The following constants declared by the Visio type library show possible values that the Type property of a Shape object returns.
Constant |
Value |
visTypePage |
1 |
visTypeGroup |
2 |
visTypeShape |
3 |
visTypeForeignObject |
4 |
visTypeGuide |
5 |
visTypeDoc |
6 |
visTypeMetafile |
16 |
visTypeBitmap |
32 |
visTypeIsLinked |
256 |
visTypeIsEmbedded |
512 |
visTypeIsControl |
1024 |
visTypeIsOLE2 |
32768 |
If a Shape object is type visTypeForeignObject, use the ForeignType property to determine the type of foreign object represented by the object.
Type values for Window objects
The Type property of a Window object returns one of the following values.
Constant |
Value |
Description |
visDrawing |
1 |
Drawing window (MDI frame window) |
visStencil |
2 |
Stencil window (MDI frame window) |
visSheet |
3 |
ShapeSheet window (MDI frame window) |
visIcon |
4 |
Icon editing window (MDI frame window) |
visAnchorBarBuiltIn |
6 |
Visio built-in window that has tabs at the bottom when merged—presently, the Custom Properties, Size & Position, Drawing Explorer, and Pan & Zoom windows (floating, anchored, or docked windows) |
visDockedStencilBuiltIn |
7 |
Visio built-in stencil window that tiles/cascades when merged (floating, anchored, or docked window) |
visDrawingAddon |
8 |
Drawing window created by an add-on (MDI frame window) |
visStencilAddon |
9 |
Stencil window created by an add-on (MDI frame window) |
visAnchorBarAddon |
10 |
Window created by an add-on that has tabs at the bottom when merged (floating, anchored, or docked window) |
visDockedStencilAddon |
11 |
Window created by an add-on that tiles/cascades when merged (floating, anchored, or docked window) |
If a Window object is type visDrawing, use the SubType property to determine the type of drawing window represented by the object.