Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

XRChart.CustomizeLegend Event

OBSOLETE

The CustomizeLegend event is obsolete now. Use the PivotChartingCustomizeLegend event instead.

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

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraReports.v24.2.dll

NuGet Package: DevExpress.Reporting.Core

#Declaration

[Browsable(false)]
[Obsolete("The CustomizeLegend event is obsolete now. Use the PivotChartingCustomizeLegend event instead.")]
public event CustomizeLegendEventHandler CustomizeLegend

#Event Data

The CustomizeLegend event's data class is CustomizeLegendEventArgs. 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

The CustomizeLegend event is now obsolete. Use the XRChart.PivotChartingCustomizeLegend event instead.

See Also