Back to Devexpress

GridPaneLayout.AutoLayoutMode Property

corelibraries-devexpress-dot-xtracharts-dot-gridpanelayout.md

latest4.0 KB
Original Source

GridPaneLayout.AutoLayoutMode Property

Gets or sets the value that specifies the layout pattern that the diagram uses for automatically laying out panes.

Namespace : DevExpress.XtraCharts

Assembly : DevExpress.XtraCharts.v25.2.dll

NuGet Package : DevExpress.Charts

Declaration

csharp
[XtraChartsLocalizableCategory(XtraChartsCategory.Behavior)]
public PaneAutoLayoutMode AutoLayoutMode { get; set; }
vb
<XtraChartsLocalizableCategory(XtraChartsCategory.Behavior)>
Public Property AutoLayoutMode As PaneAutoLayoutMode

Property Value

TypeDescription
PaneAutoLayoutMode

The value that specifies the layout pattern that the diagram uses for automatically laying out panes.

|

Available values:

NameDescription
Linear

The diagram lays out panes in a line.

| | Grid |

The diagram lays out panes in a table that have a number of rows equal to the square root of the pane number.

|

Remarks

Note that the Layout’s GridPaneLayout.Direction property specifies the orientation of the target pane layout. The following table demonstrates these properties in action:

AutoLayoutMode = AutoLayoutMode.LinearAutoLayoutMode = AutoLayoutMode.Grid
Direction = PaneLayoutDirection.Horizontal
Direction = PaneLayoutDirection.Vertical

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the AutoLayoutMode 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.

winforms-dashboard-display-each-series-in-separate-pane-for-chart-items/CS/MultiPaneExtension/MultiPaneModule.cs#L104

csharp
{
    diagram.PaneLayout.AutoLayoutMode = settings.UseGridLayout ? PaneAutoLayoutMode.Grid : PaneAutoLayoutMode.Linear;
    diagram.RuntimePaneCollapse = settings.AllowPaneCollapsing;

winforms-dashboard-display-each-series-in-separate-pane-for-chart-items/VB/MultiPaneExtension/MultiPaneModule.vb#L101

vb
If settings.MultiPaneEnabled Then
    diagram.PaneLayout.AutoLayoutMode = If(settings.UseGridLayout, PaneAutoLayoutMode.Grid, PaneAutoLayoutMode.Linear)
    diagram.RuntimePaneCollapse = settings.AllowPaneCollapsing

See Also

GridPaneLayout Class

GridPaneLayout Members

DevExpress.XtraCharts Namespace