Table of contents
Collapse the table of content
Expand the table of content

Shape.AddGuide Method (Visio)

office 365 dev account|Last Updated: 6/12/2017
1 Contributor

Adds a guide to a group shape.


expression . AddGuide( Type , xPos , yPos )

expression A variable that represents a Shape object.


NameRequired/OptionalData TypeDescription
TypeRequiredIntegerThe type of guide to add.
xPosRequiredDoubleThe x-coordinate of a point on the guide.
yPosRequiredDoubleThe y-coordinate of a point on the guide.

Return Value



You can add a guide only to a group shape.

To view guides that you add to a group shape by using the AddGuide method, use the OpenDrawWindow method to open the Group Editing window.

The following constants declared by the Visio type library are valid values for guide types.

visPoint1Guide point
visHorz2Horizontal guide
visVert3Vertical guide
© 2018 Microsoft