共用方式為


Cursor.SelectionEnd 屬性

定義

取得或設定範圍選擇的終點位置。

public:
 property double SelectionEnd { double get(); void set(double value); };
[System.ComponentModel.Bindable(true)]
[System.ComponentModel.TypeConverter(typeof(System.Windows.Forms.DataVisualization.Charting.DoubleDateNanValueConverter))]
public double SelectionEnd { get; set; }
[<System.ComponentModel.Bindable(true)>]
[<System.ComponentModel.TypeConverter(typeof(System.Windows.Forms.DataVisualization.Charting.DoubleDateNanValueConverter))>]
member this.SelectionEnd : double with get, set
Public Property SelectionEnd As Double

屬性值

範圍選擇的最終位置。

屬性

備註

使用者可點擊滑鼠左鍵並拖曳滑鼠,選擇圖表區域內的區間。 注意,該 IsUserSelectionEnabled 性質也必須設為 true。 此外,範圍選擇也可以透過程式化設定,使用 SelectionEnd and SelectionStart 屬性或 SetSelectionPosition or SetSelectionPixelPosition 方法。

範圍選擇的終點位置是以游標所屬軸的值計算。 例如,若游標位於主 X 軸,且你將屬性設定 SelectionEnd 為 2000 年 12 月 31 日,則所選區域的結束會發生在 2000 年 12 月 31 日,沿著主 X 軸。

若要程式化移除範圍選擇,請將範圍的起點與終點設為 NaNSelectionEnd and SelectionStart 屬性,或使用該 SetSelectionPosition 方法。

適用於