Edit

Share via


Cursor.SelectionStart Property

Definition

Gets or sets the start position of a cursor's selected range.

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

Property Value

The start position of a cursor's selected range.

Attributes

Remarks

A user can select a range by clicking on the left mouse button and then moving the cursor position by dragging the mouse. Note that the IsUserSelectionEnabled property must also be set to true. In addition, a range selection can be set programmatically using either the SelectionEnd and SelectionStart properties, or the SetSelectionPosition or SetSelectionPixelPosition methods.

The start position of a range selection is calculated as a value of the axis to which the cursor belongs. For example, if the cursor belongs to the primary X-axis, and you set the SelectionStart property to a value of January 1, 2000, the beginning of the selected area will occur at January 1, 2000 along the primary X axis.

To programmatically remove a range selection, set the beginning and end points of the range to NaN using the SelectionEnd and SelectionStart properties, or use the SetSelectionPosition method.

Applies to