LegendItem.SeriesPointIndex プロパティ

定義

既定の凡例項目と関連付けられた DataPoint オブジェクトのインデックスを取得または設定します。

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

プロパティ値

0 から始まるインデックスで既定の凡例に関連付けられたデータ ポイントの位置を表す integer 値。 円グラフおよびドーナツ グラフ以外の種類のすべてのグラフでは、-1 が返されます。

属性

注釈

このプロパティは、 イベントでのみ CustomizeLegend 使用して、既定の円グラフまたは球グラフの DataPoint 凡例エントリで表されるオブジェクトを決定する必要があります。

円グラフまたは球グラフ以外のグラフの種類では、既定の凡例項目はプロットされた系列に対応し、プロットされたデータ ポイントには対応していないため、負のグラフ (-1) が返されます。 これらのグラフの種類には SeriesName 、 プロパティを使用します。

このプロパティは開発者が設定しないでください。

注意

このプロパティは、 全体 LegendItemに適用されます。

適用対象