LegendItem.SeriesPointIndex 属性

定义

获取或设置与默认图例项关联的 DataPoint 对象的索引。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

属性值

Int32

一个 integer 值,该值表示默认图例关联的数据点在从零开始的索引中的位置。An integer value that represents the location of the default legend's associated data point in a zero-based index. 除了饼图和圆环图之外的所有图表类型都将返回负一 (-1)。All chart types except for pie and doughnut charts will return a negative one (-1).

属性

注解

此属性应仅在事件中使用 CustomizeLegend ,以确定 DataPoint 由默认饼图或球图图例条目表示的对象。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.

饼图或球图以外的图表类型将返回一个 (-1) 的负一,因为默认图例项对应于绘图序列,而不是绘制数据点。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. SeriesName对于这些图表类型,请使用属性。Use the SeriesName property for these chart types.

开发人员不应设置此属性。This property should not be set by the developer.

备注

此属性适用于整个 LegendItemThis property is applicable to the entire LegendItem.

适用于