CursorEventArgs.NewSelectionEnd 屬性

定義

取得或設定選取範圍的結束位置。 此外,視事件而定,也會設定範圍的結束位置。

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

屬性值

double 值,表示選取範圍的結束位置。

備註

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

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

選取範圍的開始位置不一定小於所選範圍的結束位置。 開始位置是使用者在圖表區域內按一下的位置,而結束位置則是引發事件時滑鼠的位置。

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

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

適用於