Cursor.IntervalType Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應