Search
DecisionLayout Class
Remarks See Also
 






Implements a decision graph layout algorithm.

Namespace: MindFusion.Diagramming.Layout
Assembly: MindFusion.Diagramming

 Syntax

C#  Copy Code

public class DecisionLayout : Layout

Visual Basic  Copy Code

Public Class DecisionLayout
    Inherits Layout

 Remarks

This algorithm arranges simple flowcharts consisting of decision boxes with up to three outgoing links per node and activity boxes with a single outgoing link per node. The nodes are arranged in columns and rows, whose distance depends on the HorizontalPadding and VerticalPadding property values. When links share the same row or column, they are placed at a distance specified via LinkPadding.

The layout arranges nodes recursively starting from StartNode. If StartNode is not specified, the algorithm selects the root of the deepest branch of the graph's spanning tree as start node.

The overall orientation of the layout can be set via the Orientation property. There is no distinction made between yes/no links, and the node sides by which links are aligned depend only on the order of links in OutgoingLinks collection. If you have a preferred position for links depending on their yes/no type, make sure the OutgoingLinks collections of nodes are sorted by links' logical values.

 Inheritance Hierarchy

System.Object
    MindFusion.Diagramming.Layout.Layout
        MindFusion.Diagramming.Layout.DecisionLayout

 See Also