NShape Reference
Connect Method

<< Click to Display Table of Contents >>

Navigation:  Class Reference > Namespace Dataweb.NShape > Shape Class >

NShape Reference
Connect Method

Previous pageReturn to chapter overviewNext page

Connects the shape to another shape.

Syntax

public abstract void Connect(ControlPointId ownPointId, Shape otherShape, ControlPointId otherPointId)

Description

Connects the glue point identified by ownPointId to the connection point of otherShape identified by otherPointid. This method must be called upon the shape with the glue point and must not be called upon the shape with the connection point.

Parameters

Name

Description

ownPointId

Id of glue point to connect

otherShape

Shape to connect to

otherPointId

Id of connection point of other shape

Exceptions

Name

Description

ArgumentException

Control point ids are invalid for the respective shapes.

InvalidOperationException

One of the control points cannot accept the connection, e.g. the glue point is already connected.

See Also

Concepts: Connections

CanConnect Method

Disconnect Method