Skip to main content
All docs
V25.1
  • DevExpress v25.1 Update — Your Feedback Matters

    Our What's New in v25.1 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

    Take the survey Not interested

    DiagramControl.OrgChartLayoutTreeAlignment Property

    Specifies the alignment of the org chart layout’s tree section. This is a dependency property.

    Namespace: DevExpress.Xpf.Diagram

    Assembly: DevExpress.Xpf.Diagram.v25.1.dll

    NuGet Package: DevExpress.Wpf.Diagram

    #Declaration

    public Alignment OrgChartLayoutTreeAlignment { get; set; }

    #Property Value

    Type Description
    Alignment

    A Alignment enumeration value.

    Available values:

    Name Description
    Near

    In a left-to-right layout, items are aligned to the left from the layout axis. In a right-to-left layout, items are aligned to the right.

    Center

    Items are aligned along the layout axis.

    Far

    In a left-to-right layout, items are aligned to the right from the layout axis. In a right-to-left layout, items are aligned to the left.

    #Remarks

    The OrgChartLayoutTreeAlignment property specifies how the layout algorithm arranges shapes relative to the layout axis. The layout axis is specified using the DiagramControl.OrgChartLayoutDirection property.

    The table below illustrates tree alignments when the DiagramControl.OrgChartLayoutDirection property is set to LayoutDirection.TopToBottom and LayoutDirection.LeftToRight.

    Alignment TopToBottom direction LeftToRight direction
    Near Diagram Alignment Near Diagram Layout LtR Near
    Center Diagram Alignment Center Diagram Layout LtR Center
    Far Diagram Alignment Far Diagram Layout LtR Far
    See Also