次の方法で共有


Layer.Delete Method

Visio Automation Reference

Deletes a Layer object. Can also delete shapes assigned to the deleted layer.

Version Information
 Version Added:  Visio 2.0

Syntax

expression.Delete(fDeleteShapes)

expression   A variable that represents a Layer object.

Parameters

Name Required/Optional Data Type Description
fDeleteShapes Required Integer 1 (True) to delete shapes assigned to the layer; otherwise, 0 (False).

Return Value
Nothing

Remarks

When fDeleteShapes is non-zero, shapes assigned only to the deleted layer are deleted. Otherwise, the shapes are simply no longer assigned to that layer.

See Also