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

Chapter 14. Connecting and Positioning V... > Positioning or Repositioning SmartSh...

Positioning or Repositioning SmartShape Symbols on a Page

As you have seen from Listing 14.3, positioning SmartShape symbols on a diagram page can be a challenge. How you attack this challenge is generally determined by the type of diagram that you are trying to produce. You have seen thus far that you can position symbols through a direct reference to an explicit X and Y value or by a percentage of the height and width of the page itself. Additional methods include relative offsets from symbols already on the page or layout algorithms established for the given diagram type.

Numerous references have been written with an incredible number of different theories about how auto-layout should be accomplished. The purpose of this book is not to teach auto-layout. I will leave that to the experts in that field. What is important here is that you understand that by using ActiveX Automation, accessing the Drop method of the page for initial placement, and later by accessing the PinX and PinY Cell objects and setting a new Formula property for the Cell object, you can locate and relocate any SmartShape symbol anywhere you need to on the page. Additionally, you can refer to the Page and Shape properties for layout under Visio 2000, as we have discussed previously, for assistance in placement.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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