|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer|
Shape.DeleteEx Method (Visio)
Deletes the additional shapes that are associated with the shape, such as connectors and unselected container members, when the shape is deleted.
expression A variable that represents a Shape object.
The additional shapes to delete. See Remarks for possible values.
DelFlags must be one or a bitwise combination of the following VisDeleteFlags constants.
Match the deletion behavior that is in the user interface.
Delete connectors that are attached to deleted shapes.
Do not delete connectors that are attached to deleted shapes.
Do not delete unselected members of containers or lists.
Do not delete unselected callouts that are associated with shapes.
In a bitwise combination of DelFlags constants, you cannot combine visDeleteHealConnectors and visDeleteNoHealConnectors. If you attempt to do so, Microsoft Visio returns an Invalid Parameter error.