XYDiagramPaneBase.SizeMode Property

Obsolete. 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.v19.2.dll

Declaration

[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.")]
[Browsable(false)]
public PaneSizeMode SizeMode { get; set; }
<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.")>
<Browsable(False)>
Public Property SizeMode As PaneSizeMode

Property Value

Type Description
PaneSizeMode

A PaneSizeMode object which represents the pane's size mode.

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 XYDiagramPaneBase.SizeInPixels 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.

ChartControl.Width = 350
SizeMode_Small
ChartControl.Width = 450
SizeMode_Large

For more information, refer to Pane Layout.

See Also