Share via


Union Method [Visio 2003 SDK Documentation]

Creates a new shape from the perimeter of selected shapes.

object**.Union**

object     Required. An expression that returns a Selection object that contains the shapes to unite.

Version added

2.0

Remarks

Using the Union method is equivalent to clicking Union on the Operations submenu of the Shape menu in Microsoft Office Visio. The produced shape will be the topmost shape in its containing shape and will inherit the text and formatting of the first selected shape.

When the operation is complete, the original shapes are deleted and no shapes are selected.

Applies to | Selection object

See Also | Combine method | ContainingShape property | Fragment method | Intersect method | Join method | Subtract method | Trim method