Table of contents
Collapse the table of content
Expand the table of content

Selection.DeleteEx Method (Visio)

office 365 dev account|Last Updated: 6/12/2017
1 Contributor

Deletes additional shapes associated with the selection, such as connectors and unselected container members, when the selection is deleted.


expression . DeleteEx( DelFlags )

expression A variable that represents a Selection object.


NameRequired/OptionalData TypeDescription
DelFlagsRequiredLongThe additional shapes to delete. See Remarks for possible values.

Return Value



DelFlags must be one or a bitwise combination of the following VisDeleteFlags constants.

visDeleteNormal0Match the deletion behavior in the user interface.
visDeleteHealConnectors1Delete connectors attached to deleted shapes.
visDeleteNoHealConnectors2Do not delete connectors attached to deleted shapes.
visDeleteNoContainerMembers4Do not delete unselected members of containers or lists.
visDeleteNoAssociatedCallouts8Do not delete unselected callouts 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.

© 2018 Microsoft