Creates a connection between the specified connection points.
Namespace:
Mindscape.WpfDiagramming.FoundationAssembly: Mindscape.WpfDiagramming.Foundation (in Mindscape.WpfDiagramming.Foundation.dll)
Version: 2.0.0.0 (2.0.0.0)
Syntax
C# |
---|
void CreateConnection( IDiagramModel diagram, IDiagramConnectionPoint fromConnectionPoint, IDiagramConnectionPoint toConnectionPoint ) |
Visual Basic (Declaration) |
---|
Sub CreateConnection ( _ diagram As IDiagramModel, _ fromConnectionPoint As IDiagramConnectionPoint, _ toConnectionPoint As IDiagramConnectionPoint _ ) |
Parameters
- diagram
- Type: Mindscape.WpfDiagramming.Foundation..::.IDiagramModel
The IDiagramModel to which the connection will be added.
- fromConnectionPoint
- Type: Mindscape.WpfDiagramming.Foundation..::.IDiagramConnectionPoint
The IDiagramConnectionPoint representing the start of the connection.
- toConnectionPoint
- Type: Mindscape.WpfDiagramming.Foundation..::.IDiagramConnectionPoint
The IDiagramConnectionPoint representing the end of the connection.
Remarks
The builder may implement connection creation by adding a connection to the diagram model, or
by creating an object or relationship in a business object model (which is observed by the diagram
model.)