Click or drag to resize
RadDiagramAddConnection Method (IShape, IShape, 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 connectorsPosition,
	bool isUndoable = false
)

Parameters

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

Return Value

Type: IConnection
See Also