Returns whether or not a connection can be made between the given connection point and destination.

Namespace:  Mindscape.WpfDiagramming.Foundation
Assembly:  Mindscape.WpfDiagramming.Foundation (in Mindscape.WpfDiagramming.Foundation.dll)
Version: 2.0.0.0 (2.0.0.0)

Syntax

C#
bool CanCreateConnection(
	IDiagramModel diagram,
	IDiagramConnectionPoint fromConnectionPoint,
	ConnectionDropTarget dropTarget
)
Visual Basic (Declaration)
Function CanCreateConnection ( _
	diagram As IDiagramModel, _
	fromConnectionPoint As IDiagramConnectionPoint, _
	dropTarget As ConnectionDropTarget _
) As Boolean

Parameters

diagram
Type: Mindscape.WpfDiagramming.Foundation..::.IDiagramModel
The IDiagramModel that the connection will belong to.
fromConnectionPoint
Type: Mindscape.WpfDiagramming.Foundation..::.IDiagramConnectionPoint
The source connection point of the connection.
dropTarget
Type: Mindscape.WpfDiagramming.Foundation..::.ConnectionDropTarget
Information about the potential destination of the connection.

Return Value

True if a connection can be made, otherwise false.

See Also