Selection.DeleteEx method (Visio)
Deletes additional shapes associated with the selection, such as connectors and unselected container members, when the selection is deleted.
Syntax
expression. DeleteEx
( _DelFlags_
)
expression A variable that represents a Selection object.
Parameters
Name | Required/Optional | Data type | Description |
---|---|---|---|
DelFlags | Required | Long | The additional shapes to delete. See Remarks for possible values. |
Return value
Nothing
Remarks
DelFlags must be one or a bitwise combination of the following VisDeleteFlags constants.
Constant | Value | Description |
---|---|---|
visDeleteNormal | 0 | Match the deletion behavior in the user interface. |
visDeleteHealConnectors | 1 | Delete connectors attached to deleted shapes. |
visDeleteNoHealConnectors | 2 | Do not delete connectors attached to deleted shapes. |
visDeleteNoContainerMembers | 4 | Do not delete unselected members of containers or lists. |
visDeleteNoAssociatedCallouts | 8 | Do 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.
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.