Click or drag to resize

ConnectorConnect Method (IConnectable, String, IConnectable, String, ConnectorAlignment, Boolean, Boolean)

Connect two named connectors together with parameters determining whether and how the connectables (Visuals) should move when aligned.

Namespace:  Demo3D.Visuals
Assembly:  Demo3D.Core (in Demo3D.Core.dll) Version: 15.0.2.11458
Syntax
C#
public static void Connect(
	IConnectable from,
	string fromName,
	IConnectable to,
	string toName,
	ConnectorAlignment align,
	bool allowMultiple,
	bool centerSnap
)

Parameters

from
Type: IConnectable
From IConnectable (Visual).
fromName
Type: SystemString
From connector name.
to
Type: IConnectable
To IConnectable (Visual).
toName
Type: SystemString
To connector name.
align
Type: Demo3D.VisualsConnectorAlignment
Should the IConnectable objects (Visuals) be aligned based on the connector
allowMultiple
Type: SystemBoolean
Should this connection be added to existing connectors or replace all existing connections.
centerSnap
Type: SystemBoolean
Snap connector to center of other connector instead of the closest point on the connection line.
See Also