Intersect method

Microsoft Visio Developer Reference

Intersect method

   Example   

Creates one closed shape from the area in which selected shapes overlap or intersect.

Version added

4.0

Syntax

object.Intersect

object

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

Remarks

The Intersect method is equivalent to clicking Intersect 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.