LegendItem.SeriesPointIndex Property

.NET Framework (current version)
 

Gets or sets the index of a DataPoint object associated with a default legend item.

Namespace:   System.Web.UI.DataVisualization.Charting
Assembly:  System.Web.DataVisualization (in System.Web.DataVisualization.dll)

<BrowsableAttribute(False)>
Public Property SeriesPointIndex As Integer

Property Value

Type: System.Int32

An integer value that represents the location of the default legend's associated data point in a zero-based index. All chart types except for pie and doughnut charts will return a negative one (-1).

This property should only be used in the CustomizeLegend event to determine the DataPoint object that is represented by a default pie or sphere chart legend entry.

Chart types other than pie or sphere charts will return a negative one (-1), because the default legend items correspond to plotted series, and not plotted data points. Use the SeriesName property for these chart types.

This property should not be set by the developer.

System_CAPS_noteNote

This property is applicable to the entire LegendItem.

.NET Framework
Available since 4.0
Return to top
Show: