共用方式為


HitTestResult.PointIndex 屬性

定義

取得或設定點擊測試傳回之資料點 (如果有的話) 的索引。

public:
 property int PointIndex { int get(); void set(int value); };
public int PointIndex { get; set; }
member this.PointIndex : int with get, set
Public Property PointIndex As Integer

屬性值

Int32

integer 值,表示點擊測試傳回之資料點 (如果有) 的索引。 預設值為負 1 (-1)。

備註

如果資料點位於點擊測試所檢查的位置, PointIndex 屬性會傳回該資料點的以零為基底的索引,否則會傳回負一的 (-1) 。

所有資料點都會儲存在中 DataPointCollection ,而此屬性會公開為 Points 物件的集合屬性; 的 Series 索引是以 DataPointCollection 零為基底。

Series 可以使用屬性來判斷資料點所屬的數列。

適用於