Layer.Remove method (Visio)

Removes a shape from a layer.

Syntax

expression. Remove( _SheetObject_ , _fPresMems_ )

expression A variable that represents a Layer object.

Parameters

Name Required/Optional Data type Description
SheetObject Required [IVSHAPE] An expression that returns the Shape object to remove.
fPresMems Required Integer Flag that indicates whether to remove members of a group.

Return value

Nothing

Remarks

If the shape is a group and fPresMems is non-zero, member shapes of the group are unaffected. If fPresMems 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.

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.