Cursor.SelectionStart 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定游標所選範圍的起始位置。
public:
property double SelectionStart { double get(); void set(double value); };
[System.ComponentModel.Bindable(true)]
[System.ComponentModel.TypeConverter(typeof(System.Windows.Forms.DataVisualization.Charting.DoubleDateNanValueConverter))]
public double SelectionStart { get; set; }
[<System.ComponentModel.Bindable(true)>]
[<System.ComponentModel.TypeConverter(typeof(System.Windows.Forms.DataVisualization.Charting.DoubleDateNanValueConverter))>]
member this.SelectionStart : double with get, set
Public Property SelectionStart As Double
屬性值
游標所選範圍的起始位置。
- 屬性
備註
使用者可透過點擊滑鼠左鍵,然後拖曳游標來選擇範圍。 注意,該 IsUserSelectionEnabled 性質也必須設為 true。 此外,範圍選擇也可以透過程式化設定,使用 SelectionEnd and SelectionStart 屬性或 SetSelectionPosition or SetSelectionPixelPosition 方法。
範圍選擇的起始位置是以游標所屬軸的值計算出來的。 例如,如果游標位於主要 X 軸,且你將屬性設定 SelectionStart 為 2000 年 1 月 1 日,則選取區域的起始點會沿著主 X 軸在 2000 年 1 月 1 日。
若要程式化移除範圍選擇,請將範圍的起點與終點設為 NaNSelectionEnd and SelectionStart 屬性,或使用該 SetSelectionPosition 方法。