Click or drag to resize
RadDiagramAddGlidingConnection Method
Adds a new gliding connection to the diagram connecting the given source and target shapes.

Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.RadDiagram (in Telerik.WinControls.RadDiagram.dll) Version: 2018.1.220.40 (2018.1.220.40)
public IConnection AddGlidingConnection(
	IShape source,
	IShape target,
	bool isUndoable = false


Type: Telerik.Windows.Diagrams.CoreIShape
The source or start shape of the connection.
Type: Telerik.Windows.Diagrams.CoreIShape
The target or end shape of the connection.
isUndoable (Optional)
Type: SystemBoolean
If set to true this action will be recorded in the undo stack.

Return Value

Type: IConnection
If the shape already contains connections on the default connectors this will raise an exception since gliding connections are mutually exclusive with normal connections. Remove first the existing connections on the source and target shapes before calling this method.
See Also