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

GridPaneLayout.Direction Property

Gets or sets the automatic layout pattern’s orientation.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v21.2.dll

NuGet Package: DevExpress.Charts

Declaration

[XtraChartsLocalizableCategory(XtraChartsCategory.Behavior)]
public PaneLayoutDirection Direction { get; set; }

Property Value

Type Description
PaneLayoutDirection

The automatic layout pattern’s orientation.

Available values:

Name Description
Vertical

Panes are aligned in the vertical direction.

PaneLayoutDirection_Vertical

Horizontal

Panes are aligned in the horizontal direction.

PaneLayoutDirection_Horizontal

Remarks

Note that the Layout’s GridPaneLayout.AutoLayoutMode property specifies the layout pattern that the diagram uses for automatically laying out panes.

The following table demonstrates these properties in action:

AutoLayoutMode = AutoLayoutMode.Linear AutoLayoutMode = AutoLayoutMode.Grid
Direction = PaneLayoutDirection.Horizontal chart__auto-layout--linear-horizontal chart__auto-layout--grid-horizontal
Direction = PaneLayoutDirection.Vertical chart__auto-layout--linear-vertical chart__auto-layout--grid-vertical

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Direction property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also