Shape.GluedShapes Method (Visio)
Returns an array that contains the identifiers of the shapes that are glued to a shape.
expression .GluedShapes(Flags, CategoryFilter, pOtherConnectedShape)
expression A variable that represents a Shape object.
The dimensionality and directionality of the connection points of the shapes to return.
The category of shapes to return. See Remarks for more information
Additional shape to which returned shapes must also be glued.
Flags must be one of the following VisGluedShapesFlags constants.
Return all 1-D shapes that are glued to this shape.
Return 1-D shapes whose end points are glued to this shape.
Return 1-D shapes whose begin points are glued to this shape.
Return all 2-D shapes that are glued to this shape and all 2-D shapes to which this shape is glued.
If the source object is a 1-D shape, return the 2-D shape to which the begin point is glued. If the source object is a 2-D shape, return the 2-D shapes that are glued to this shape.
If the source object is a 1-D shape, return the 2-D shape to which the end point is glued. If the source object is a 2-D shape, return the 2-D shapes to which this shape is glued.
Categories are user-defined strings that you can use to categorize shapes and thereby to restrict membership in a container. You can define categories in the User.msvShapeCategories cell in the ShapeSheet for a shape. You can define multiple categories for a shape by separating those categories with semi-colons.
Connection points with dual directionality (both inward and outward) are identified as incoming or outgoing based on the way that they are used in a particular connection.
The GluedShapes method fails if the source object is a part of a master or a guide. Guides are excluded from any list of shapes returned.
If you specify an invalid shape for pOtherConnectedShape, Microsoft Visio returns an Invalid Parameter error.
GluedShapes returns an empty array if there are no qualifying shapes to return.