Share via


Remove Method [Visio 2003 SDK Documentation]

Removes a shape from a layer.

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.

Version added

4.0

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.

Applies to | Layer object