Skip to main content

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

Initializes a new instance of the TreeLayoutSettings class.

Namespace: DevExpress.Diagram.Core.Layout

Assembly: DevExpress.Diagram.v24.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 Center

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

See Also