<< Click to Display Table of Contents >> NShape Reference
|
Connects the shape to another shape.
public abstract void Connect(ControlPointId ownPointId, Shape otherShape, ControlPointId otherPointId) |
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.
Name |
Description |
---|---|
ownPointId |
Id of glue point to connect |
otherShape |
Shape to connect to |
otherPointId |
Id of connection point of other shape |
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. |