Export (0) Print
Expand All
Expand Minimize

Shape.Disconnect Method (Visio)

Unglues the specified connector end points and offsets them the specified amount from the shapes to which they were joined.

Version Added: Visio 2010

expression .Disconnect(ConnectorEnd, OffsetX, OffsetY, Units)

expression A variable that represents a Shape object.

Parameters

Name

Required/Optional

Data Type

Description

ConnectorEnd

Required

VisConnectorEnds

The end of the connector to disconnect.

OffsetX

Required

Double

The x-distance that the connector end is moved away from the shape.

OffsetY

Required

Double

The y-distance that the connector end is moved away from the shape.

Units

Required

VisUnitCodes

The units of measure for the assigned offset values.

Return Value

Nothing

ConnectorEnd must be one of the following VisConnectorEnds constants.

Constant

Value

Description

visConnectorBeginPoint

0

The begin point of the connector.

visConnectorEndPoint

1

The end point of the connector.

visConnectorBothEnds

2

Both the begin and the end point of the connector.

When you call Disconnect on a connector shape (a 1-D routable shape), one or both endpoints of the connector are unglued from their target shapes, based on the specified ConnectorEnd parameter value. If a specified endpoint is not glued, Microsoft Visio takes no action.

Visio offsets the endpoint(s) from their current position by the amount specified by OffsetX, OffsetY, and Units. Offset values of 0 mean that the endpoints do not move.

The Disconnect method does not apply to non-connector shapes. If you call Disconnect on a non-connector shape or on a shape in a master, Visio returns an Invalid Source error.

Show:
© 2014 Microsoft