Add and Connect Visio Shapes

Adding and Connecting Shapes

The code in the samples below show how to:

  1. Create a diagram.
  2. Add and customize shapes (rectangle, star, hexagon).
  3. Connect the star and hexagon shapes to the rectangle.
  4. Save the diagram.

Programming Sample