Επεξεργασία

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


LegendItem.SeriesPointIndex Property

Definition

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

public:
 property int SeriesPointIndex { int get(); void set(int value); };
[System.ComponentModel.Browsable(false)]
public int SeriesPointIndex { get; set; }
[<System.ComponentModel.Browsable(false)>]
member this.SeriesPointIndex : int with get, set
Public Property SeriesPointIndex As Integer

Property Value

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).

Attributes

Remarks

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.

Note

This property is applicable to the entire LegendItem.

Applies to