Επεξεργασία

Κοινή χρήση μέσω


CustomizeLegendEventArgs.LegendItems Property

Definition

Used to remove, modify or change the order of both custom and default legend items in the CustomizeLegend event. Can also be used to add custom legend items.

public:
 property System::Web::UI::DataVisualization::Charting::LegendItemsCollection ^ LegendItems { System::Web::UI::DataVisualization::Charting::LegendItemsCollection ^ get(); };
public System.Web.UI.DataVisualization.Charting.LegendItemsCollection LegendItems { get; }
member this.LegendItems : System.Web.UI.DataVisualization.Charting.LegendItemsCollection
Public ReadOnly Property LegendItems As LegendItemsCollection

Property Value

A LegendItemsCollection object.

Remarks

The LegendItems property allows you to delete or modify both default and custom legend items in the CustomizeLegend event, and to add custom legend items. The order of legend items can also be changed.

Note

The SeriesPointIndex and SeriesName properties can be used to determine the data element that is associated with a default legend item. These properties will return zero-length strings for custom legend items, because custom items are not associated with chart data.

This property enables you to determine which Legend the event was raised for, which enables you to customize an individual Legend.

Applies to