Skip to main content

XYDiagram2D.RuntimePaneResize Property

Gets or sets the value that specifies whether a user can resize chart panes.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v23.2.dll

NuGet Package: DevExpress.Charts

Declaration

[XtraChartsLocalizableCategory(XtraChartsCategory.Behavior)]
public bool RuntimePaneResize { get; set; }

Property Value

Type Description
Boolean

true, if a user can resize chart panes; otherwise, false.

Remarks

Drag the pane boundary to resize the pane:

When you resize panes at runtime, the Chart Control switches the GridPaneLayout.AutoLayoutMode property value to Grid even if you use the Linear pane layout mode. Then, the Chart creates row and column layout definitions used to define the panes’ position.

To obtain pane height or width in pixels, use the LayoutDefinition.SizeInPixels property of the row/column that contains the pane. The Chart Control resets the LayoutDefinition.Weight property value and initialize SizeInPixels instead even if you used weight values to specify pane sizes.

See the Pane Layout document for more information.

Example

XYDiagram2D diagram = chartControl1.Diagram as XYDiagram2D;
diagram.RuntimePaneResize = true;
See Also