MindFusion.Wpf Pack Programmer's Guide
TreeLayout Constructor (Object, TreeLayoutType, Boolean, TreeLayoutLinkType, TreeLayoutDirections, Double, Double, Boolean, Size)
See Also
 





Initializes a new instance of the TreeLayout class with the specified settings.

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

 Syntax

C#  Copy Code

public TreeLayout (
    Object root,
    TreeLayoutType type,
    bool reversedLinks,
    TreeLayoutLinkType linkStyle,
    TreeLayoutDirections direction,
    double levelDistance,
    double nodeDistance,
    bool keepRootPosition,
    Size margins
)

Visual Basic  Copy Code

Public New ( _
    root As Object, _
    type As TreeLayoutType, _
    reversedLinks As Boolean, _
    linkStyle As TreeLayoutLinkType, _
    direction As TreeLayoutDirections, _
    levelDistance As Double, _
    nodeDistance As Double, _
    keepRootPosition As Boolean, _
    margins As Size _
)

 Parameters

root

The root of the arranged tree.

type

The type of the tree layout.

reversedLinks

Specifies whether the parent-to-child direction in the tree should be reversed, that is, from the end of the link towards its beginning.

linkStyle

The style of the links in the produced layout.

direction

The layout direction.

levelDistance

The distance between adjacent levels.

nodeDistance

The distance between adjacent nodes.

keepRootPosition

Specifies whether to keep the position of the tree root.

margins

The margin between the produced tree and the left side of the diagram bounding rectangle.

 See Also

TreeLayout Constructor Overload List
TreeLayout Class
MindFusion.Diagramming.Wpf.Layout Namespace