Back to Devexpress

XYDiagram2D.RuntimePaneResize Property

corelibraries-devexpress-dot-xtracharts-dot-xydiagram2d-d3c0716e.md

latest2.7 KB
Original Source

XYDiagram2D.RuntimePaneResize Property

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

Namespace : DevExpress.XtraCharts

Assembly : DevExpress.XtraCharts.v25.2.dll

NuGet Package : DevExpress.Charts

Declaration

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

Property Value

TypeDescription
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

csharp
XYDiagram2D diagram = chartControl1.Diagram as XYDiagram2D;
diagram.RuntimePaneResize = true;
vb
Dim diagram As XYDiagram2D = TryCast(chartControl1.Diagram, XYDiagram2D)
diagram.RuntimePaneResize = True

See Also

RuntimePaneCollapse

XYDiagram2D Class

XYDiagram2D Members

DevExpress.XtraCharts Namespace