Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Chart.OnCustomizeLegend Method

.NET Framework 4.6 and 4.5

Raises the CustomizeLegend event.

Namespace:  System.Windows.Forms.DataVisualization.Charting
Assembly:  System.Windows.Forms.DataVisualization (in System.Windows.Forms.DataVisualization.dll)

protected virtual void OnCustomizeLegend(
	LegendItemsCollection legendItems,
	string legendName
)

Parameters

legendItems
Type: System.Windows.Forms.DataVisualization.Charting.LegendItemsCollection

A LegendItemsCollection object.

legendName
Type: System.String

The name of the legend.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4
Show:
© 2015 Microsoft