Export (0) Print
Expand All

ConnectorFormat.BeginConnect Method 

Attaches the beginning of the specified connector to a specified shape.

Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in microsoft.office.interop.excel.dll)

'Usage
Dim ConnectedShape As Shape
Dim ConnectionSite As Integer
Dim connectorFormat1 As ConnectorFormat
connectorFormat1.BeginConnect(ConnectedShape, ConnectionSite)

void BeginConnect(
	[In] Shape ConnectedShape, 
	[In] int ConnectionSite
);
public void BeginConnect(
	/*in*/Shape ConnectedShape, 
	/*in*/int ConnectionSite
);
function BeginConnect(
	 ConnectedShape : Shape, 
	 ConnectionSite : int
);

Parameters

ConnectedShape

Required Shape object. The shape to attach the beginning of the connector to. The specified Shape object must be in the same Shapes collection as the connector.

ConnectionSite

Required Integer. A connection site on the shape specified by ConnectedShape. Must be an integer between 1 and the integer returned by the ConnectionSiteCount property of the specified shape. If you want the connector to automatically find the shortest path between the two shapes it connects, specify any valid integer for this argument and then use the RerouteConnections method after the connector is attached to shapes at both ends.

If there’s already a connection between the beginning of the connector and another shape, that connection is broken. If the beginning of the connector isn’t already positioned at the specified connecting site, this method moves the beginning of the connector to the connecting site and adjusts the size and position of the connector. Use the EndConnect method to attach the end of the connector to a shape.

When you attach a connector to an object, the size and position of the connector are automatically adjusted if necessary.


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

Community Additions

ADD
Show:
© 2015 Microsoft