Skip to main content
A newer version of this page is available. .

TreeLayoutSettings(Double, Double, LayoutDirection, Boolean, Alignment) Constructor

Initializes a new instance of the TreeLayoutSettings class.

Namespace: DevExpress.Diagram.Core.Layout

Assembly: DevExpress.Diagram.v18.2.Core.dll

Declaration

public TreeLayoutSettings(
    double horizontalSpacing,
    double verticalSpacing,
    LayoutDirection layoutDirection,
    bool isCompact = true,
    Alignment alignment = Alignment.Center
)

Parameters

Name Type Description
horizontalSpacing Double

A System.Double value that specifies the horizontal spacing between shapes.

verticalSpacing Double

A System.Double value that specifies the vertical spacing between shapes.

layoutDirection LayoutDirection

A LayoutDirection enumeration value.

Optional Parameters

Name Type Default Description
isCompact Boolean True

true to enable the compact tree layout; otherwise, false.

alignment Alignment 1

An Alignment enumeration value that specifies how the tree layout algorithm arranges shapes relatively to the layout axis.

See Also