Click or drag to resize
RadDiagramAddConnection Method (IShape, IShape, String, String, Boolean)
Adds a new 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.2.619.40 (2018.2.619.40)
Syntax
public IConnection AddConnection(
	IShape source,
	IShape target,
	string sourceConnector,
	string targetConnector,
	bool isUndoable = false
)

Parameters

source
Type: Telerik.Windows.Diagrams.CoreIShape
The source.
target
Type: Telerik.Windows.Diagrams.CoreIShape
The target.
sourceConnector
Type: SystemString
The source connector position.
targetConnector
Type: SystemString
The target connector position.
isUndoable (Optional)
Type: SystemBoolean
If set to true is undoable.

Return Value

Type: IConnection
See Also