The requested page is not available for the requested platform. You are viewing the content for Default platform.

XRChart.PivotChartingCustomizeLegend Event

Occurs before automatic settings are applied to the legend's layout properties.

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraReports.v19.1.dll

Declaration

public event CustomizeLegendEventHandler PivotChartingCustomizeLegend
Public Event PivotChartingCustomizeLegend As CustomizeLegendEventHandler

Event Data

The PivotChartingCustomizeLegend event handler receives an argument of the CustomizeLegendEventArgs type. The following properties provide information specific to this event.

Property Description
Legend Gets the chart's legend.
MaxHorizontalPercentage Specifies the legend's maximum horizontal percentage.
MaxVerticalPercentage Specifies the legend's maximum vertical percentage.

Remarks

When an XRPivotGrid is assigned to the chart's XRChart.DataSource property, and the PivotGridDataSourceOptions.AutoLayoutSettingsEnabled property is enabled, the Legend.MaxHorizontalPercentage and Legend.MaxVerticalPercentage properties are defined automatically, and cannot be customized at design time.

Handle the PivotChartingCustomizeLegend event, to manually adjust these options (with the CustomizeLegendEventArgs.MaxHorizontalPercentage and CustomizeLegendEventArgs.MaxVerticalPercentage properties). To access the legend, use the CustomizeLegendEventArgs.Legend property.

To learn more, see Pivot Charting (Integration with a Pivot Grid Control).

See Also