Remove method

Microsoft Visio Developer Reference

Remove method

See also   Example   

Removes a shape from a layer.

Version added

4.0

Syntax

object.Remove shapeObj, fPreserveMembers

object

Required. An expression that returns a Layer object.

shapeObj

Required. An expression that returns the Shape object to remove.

fPreserveMembers

Required Integer. Flag that indicates whether to remove members of a group.

Remarks

If the shape is a group and fPreserveMembers is non-zero, member shapes of the group are unaffected. If fPreserveMembers is zero (0), the group's member shapes are also removed from the layer.

Removing a shape from a layer does not delete the shape.