AddToGroup method

Microsoft Visio Developer Reference

AddToGroup method

       

Adds the selected shapes to the selected group.

Version added

2.0

Syntax

object.AddToGroup

object

Required. An expression that returns a Selection object.

Remarks

The current selection must contain both the shapes to add and the group to which you want to add them. The group must be the primary selection or the only group in the selection.