Sets the model bounds for a node, based on its display rectangle.

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 SetNodeBounds(
	IDiagramNode node,
	Rect displayBounds
)
Visual Basic (Declaration)
Sub SetNodeBounds ( _
	node As IDiagramNode, _
	displayBounds As Rect _
)

Parameters

node
Type: Mindscape.WpfDiagramming.Foundation..::.IDiagramNode
The node whose bounds are to be set.
displayBounds
Type: System.Windows..::.Rect
The node's display rectangle.

Remarks

This operation must be the inverse of GetDisplayBounds(IDiagramNode).

See Also