Gets the index of a default legend item's associated DataPoint object.
Legend item series data point index.
Visual Basic (Declaration) | |
---|---|
Public Property SeriesPointIndex As Integer |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public int SeriesPointIndex {get; set;} |
Return Value
An integer value (0-based) that indicates a default legend item's associated data point. All chart types except for pie and doughnut charts will return negative one.
This property should only be used in the CustomizeLegend event (Enterprise Edition only) to determine what DataPoint object a default pie or sphere chart legend entry represents.
Chart types other than pie or sphere chart's will return negative one, since 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.
Note: This property is applicable to the entire LegendItem.
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family