Redigera

Cursor.IntervalType Property

Definition

Gets or sets the interval type for the cursor and selected range of an axis.

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

Property Value

The interval type for the cursor and selected range of an axis.

Attributes

Remarks

The IntervalType property determines the type of interval, which is specified using the Interval property.

If the interval type is Auto, the unit of measurement for the interval is treated as a double, which is equivalent to one day when DateTime values are specified.

Note

Interval-related properties have no effect when a range selection or cursor position is set programmatically.

If the axis interval type represents a time - for example, hours, minutes, and so forth - then in order to correctly enable the zooming function, the IntervalType must also be set to a time value. For example, if the ChartArea1.AxisX.IntervalType is expressed in hours, then the ChartArea1.CursorX.IntervalType could be set to minutes.

Applies to