Previous Document Next Document
Shape.Group

Function Group() As Shape

Member of Shape

The Group method groups the shapes that are part of the current shape and returns the group shape object.

This method is applicable for a selection shape only (whose Type is cdrSelectionShape).

The following code example groups the current selection and moves the group to the current layer:

Sub Test() 
 Dim g As Shape 
 Set g = ActiveSelection.Group 
 g.Layer = ActiveLayer 
End Sub 

Previous Document Next Document Back to Top

Copyright 2007 Corel Corporation. All rights reserved.