語言

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 游標沿軸的位置。

備註

此性質代表游標的新位置,可用於 CursorPositionChanging 和 CursorPositionChanged 事件中取得游標位置。 它也可以用於 SelectionRangeChanging 事件中設定游標位置。

請注意,在事件中 SelectionRangeChanging 設定此屬性不會有影響。 NewPosition該房產在此事件中價值為 。NaN

要確定事件被提出的圖表區域,請使用該 ChartArea 屬性。

利用該 Axis 屬性判斷此終端位置是針對主軸、次軸 X 軸或 Y 軸所選範圍。

適用於