Edit

Share via


Cursor.SelectionEnd Property

Definition

Gets or sets the end position of a range selection.

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

Property Value

The end position of a range selection.

Attributes

Remarks

A user can select a range within a chart area by clicking on the left mouse button and then 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 end 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 SelectionEnd property to a value of December 31, 2000, the end of the selected area will occur at December 31, 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