XYDiagramPaneBase.SizeMode Property
OBSOLETE
This property is obsolete now. Use the Diagram.
Gets or sets a value indicating whether a pane‘s size should be fixed, or changed when a chart is resized.
Namespace: DevExpress.XtraCharts
Assembly: DevExpress.XtraCharts.v24.2.dll
NuGet Package: DevExpress.Charts
#Declaration
[Browsable(false)]
[Obsolete("This property is obsolete now. Use the Diagram.PaneLayout.RowDefinitions or Diagram.PaneLayout.ColumnDefinitions property to specify the pane's Measurement Unit. Refer to the http://docs.devexpress.com/WindowsForms/5881 page for more information about the new layout system.")]
public PaneSizeMode SizeMode { get; set; }
#Property Value
Type | Description |
---|---|
Pane |
A Pane |
Available values:
Name | Description |
---|---|
Use |
A pane’s size is specified by the Layout |
Use |
A pane’s size is specified by the Layout |
#Remarks
When the SizeMode property is set to UseWeight, the size of a pane is defined via its XYDiagramPaneBase.Weight
property.
When the SizeMode property is set to UseSizeInPixels, the size of a pane is defined via its XYDiagramPaneBase.SizeInPixels
property.
Note
Because the sum of all pane sizes may exceed the available space, an increase in one pane’s XYDiagram
property causes all panes with a fixed size to decrease, to fit into the chart’s area. If the aggregate of all panes’ sizes is greater than the chart’s width, panes’ dimensions are proportionally decreased.
If you use the default values for the default pane (its XYDiagramPaneBase.SizeMode
property is set to UseWeight), you can provide a custom size for secondary panes (XYDiagramPaneBase.SizeMode
is set to UseSizeInPixels). In this scenario, the size of secondary panes will be fixed, unless the default pane size becomes zero.
The following images demonstrate the behavior of a chart’s panes with different SizeMode property values, when the chart is resized.
Chart |
---|
![]() |
Chart |
![]() |
For more information, refer to Pane Layout.