Creates a new node in a diagram.

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

Syntax

C#
void CreateNode(
	IDiagramModel diagram,
	Rect bounds
)
Visual Basic (Declaration)
Sub CreateNode ( _
	diagram As IDiagramModel, _
	bounds As Rect _
)

Parameters

diagram
Type: Mindscape.WpfDiagramming.Foundation..::.IDiagramModel
The diagram in which the node is to be placed.
bounds
Type: System.Windows..::.Rect
The bounds within which to create the node, relative to the DiagramSurface.

Remarks

The builder may implement node creation by adding a node to the diagram model, or by creating an object or relationship in a business object model (which is observed by the diagram model.)

See Also