Applies the given layout algorithm to the diagram, re-formats all the connections and takes a snapshot for undo/redo integration.

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

Syntax

C#
public void ApplyLayoutAlgorithm(
	ILayoutAlgorithm algorithm
)
Visual Basic (Declaration)
Public Sub ApplyLayoutAlgorithm ( _
	algorithm As ILayoutAlgorithm _
)

Parameters

algorithm
Type: Mindscape.WpfDiagramming.Foundation..::.ILayoutAlgorithm
The layout algorithm to run.

See Also