Search
TreeLayout Constructor (DiagramNode, TreeLayoutType, Boolean, TreeLayoutLinkType, TreeLayoutDirections, Single, Single, Boolean, SizeF)
See Also
 





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

Namespace: MindFusion.Diagramming.Layout
Package: MindFusion.Diagramming

 Syntax

C#  Copy Code

public TreeLayout (
    DiagramNode root,
    TreeLayoutType type,
    bool reversedLinks,
    TreeLayoutLinkType linkStyle,
    TreeLayoutDirections direction,
    float levelDistance,
    float nodeDistance,
    bool keepRootPosition,
    SizeF margins
)

Visual Basic  Copy Code

Public New ( _
    root As DiagramNode, _
    type As TreeLayoutType, _
    reversedLinks As Boolean, _
    linkStyle As TreeLayoutLinkType, _
    direction As TreeLayoutDirections, _
    levelDistance As Single, _
    nodeDistance As Single, _
    keepRootPosition As Boolean, _
    margins As SizeF _
)

 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 is 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