Constructs a new FlowDiagramConnection between the two given FlowDiagramConnectionPoint objects and adds it to the given FlowDiagramModel. If the new connection is originating from a DecisionNode, then this method will also set its Data property by looking at the other connections comming from the node and predicting what the label should be. This method can identify and predict (Yes, No, Maybe), (Y, N), (True, False), and (T, F) in both upper and lower case. If no appropriate label can be predicted, then the Data will be set to be a number following the text "Decision".

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

Syntax

C#
public void CreateConnection(
	IDiagramModel diagram,
	IDiagramConnectionPoint fromConnectionPoint,
	IDiagramConnectionPoint toConnectionPoint
)
Visual Basic (Declaration)
Public Sub CreateConnection ( _
	diagram As IDiagramModel, _
	fromConnectionPoint As IDiagramConnectionPoint, _
	toConnectionPoint As IDiagramConnectionPoint _
)

Parameters

diagram
Type: Mindscape.WpfDiagramming.Foundation..::.IDiagramModel
The FlowDiagramModel that the new FlowDiagramConnection will be added to.
fromConnectionPoint
Type: Mindscape.WpfDiagramming.Foundation..::.IDiagramConnectionPoint
The IDiagramConnectionPoint that is to be the start of the created connection.
toConnectionPoint
Type: Mindscape.WpfDiagramming.Foundation..::.IDiagramConnectionPoint
The IDiagramConnectionPoint that is to be the end of the created connection.

Implements

IDiagramConnectionBuilder..::.CreateConnection(IDiagramModel, IDiagramConnectionPoint, IDiagramConnectionPoint)

See Also