Union method

Microsoft Visio Developer Reference

Union method

   Example   

Creates a new shape from the perimeter of selected shapes.

Version added

2.0

Syntax

object.Union

object

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

Remarks

The Union method is equivalent to clicking Union on the Operations submenu on the Shape menu in 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.

The original shapes are deleted and no shapes are selected when the operation is complete.