ObjType cell (Miscellaneous section)
Determines whether objects are placeable or routable in diagrams when laying out shapes using the Lay Out Shapes command.
Value |
Description |
Automation constant |
&H0 |
Default. The application decides based on the drawing context. |
visLOFlagsVisDecides |
&H1 |
Shape is placeable. |
visLOFlagsPlacable |
&H2 |
Shape is routable. Must be a one-dimensional (1-D) shape. |
visLOFlagsRoutable |
&H4 |
Shape is not placeable, not routable. |
visLOFlagsDont |
&H8 |
Group contains placeable/routable shapes. |
visLOFlagsPNRGroup |
Remarks
By default, the ObjType cell is set to No Formula for a shape, which evaluates to 0, meaning that the application determines whether the shape can be placeable depending on its context. For example, if you draw a simple rectangle, the value of its ObjType cell is 0. If you then use the Connect Shapes command or the Connector tool to connect the rectangle to another shape, Microsoft Visio resets the value of the rectangle's ObjType cell to 1 (placeable).
The value of the ObjType cell can be a combination of values. If the non-placeable bit is set (&H4), however, it takes precedence over other values except the group value (&H8).
To reference the ObjType cell by name from another formula, or from a program using the Cells property, use:
Cell name: |
ObjType |
To reference the ObjType cell by index from a program, use the CellsSRC property with the following arguments:
Section index: |
visSectionObject |
Row index: |
visRowMisc |
Cell index: |
visLOFlags |