Adding Sections to SmartShapes Symbols' ShapeSheets

To add a section to a SmartShape symbol's ShapeSheet, you use the AddSection method of the Shape object. The syntax is as follows:

shpObj.AddSection <section constant>

In this syntax, shpObj is the valid reference to the Shape object. AddSection is the Add Section method of the Shape object; <section constant> is the Visio constant for the valid and available sections in a ShapeSheet that a user can legally add.

The section constants are in the following list:

visSectionFirstComponentGeometry1 section
visSectionFirstComponent +1Geometry2 section
visSectionFirstComponent +nGeometry[n] section
visSectionActionActions section
visSectionCharacterCharacters section
visSectionConnectionPtsConnection ...

Get Professional Development with Visio® 2000 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.