CursorEventArgs.NewPosition 屬性

定義

取得或設定資料指標的位置。 此外,視事件而定,也會設定資料指標的位置。

public:
 property double NewPosition { double get(); void set(double value); };
public double NewPosition { get; set; }
member this.NewPosition : double with get, set
Public Property NewPosition As Double

屬性值

double 值,表示資料指標的座標軸位置。

備註

這個屬性代表資料指標的新位置,而且可用於 CursorPositionChangingCursorPositionChanged 事件,以取得資料指標位置。 它也可以在 事件中 SelectionRangeChanging 用來設定資料指標位置。

請注意,在 事件中 SelectionRangeChanging 設定此屬性不會有任何作用。 屬性 NewPosition 將在此事件中具有 的值 NaN

若要判斷要引發事件的圖表區域,請使用 ChartArea 屬性。

Axis使用 屬性來判斷這個結束位置是否適用于沿著主要或次要 X 或 Y 軸選取的範圍。

適用於