CursorEventArgs.NewSelectionStart 屬性

定義

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

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

屬性值

double 值,表示選取範圍的起始位置。

備註

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

請注意,在 事件中 CursorPositionChanging 設定這個屬性不會有任何作用; NewSelectionStart 屬性將會在此事件中具有 的值 NaN

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

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

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

適用於