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

Chapter 17. Getting Data from Visio Draw... > Getting Layer Information from Pages...

Getting Layer Information from Pages and SmartShapes Symbols

Remember in the previous discussion of layers as they applied to SmartShape symbols and their ShapeSheets and Visio pages and their ShapeSheets that layer names are stored in the page's ShapeSheet, and the layer assignment indexes are stored in a given SmartShape symbol's ShapeSheet. This zero-based indexing means that an index entry in the SmartShape symbol's ShapeSheet that states “1” refers to the second row in the page's Layers section of its ShapeSheet. This process may seem confusing at first, but once you get it down, you will not have a problem.

The Layers property returns the Layers collection of the page or SmartShape symbol. A Layer object's Row property returns the corresponding row in the Layers section of the page's ShapeSheet. A SmartShape symbol object's LayerCount property returns the total number of layers to which the SmartShape symbol has been assigned.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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