EditGroup Method

The EditGroup method initiates editing of a group, or composite, object. For example, the EditGroup method must be used to draw a polygon inside a base layer or to edit multiple vector objects at the same time inside a base layer. The EditGroup method is not required to select and edit an individual object inside a group or composite object.

Use the StopEditingGroup method to stop editing the object.

Syntax

object.EditGroup

Example

This example demonstrates how to initiate editing of a composite object, edit the object, and end the editing of the object.

'Define a group object pointer

Set Group1 = doc.Shapes.Item(1)

 

'Edit group

Group1.EditGroup

 

'Create an ellipse

doc.Shapes.AddEllipse(4.45755,8.3897,5.86248,7.84688)

 

'Stop editing group

doc.Shapes.StopEditingGroup

 

Used by: AutoComposite object