Cursor.IntervalType 屬性

定義

取得或設定座標軸的資料指標和選取範圍的間隔類型。

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

屬性值

DateTimeIntervalType

座標軸的資料指標和所選範圍的間隔類型。

屬性

備註

IntervalType屬性會決定以屬性指定的間隔類型 Interval

如果間隔類型為 Auto ,則間隔的測量單位會被視為 double ,這相當於指定值的一天 DateTime

注意

當您以程式設計方式設定範圍選取或資料指標位置時,間隔相關屬性不會有任何作用。

如果軸間隔型別代表時間(例如,時、分等等)來正確啟用縮放功能,則 IntervalType 也必須設定為時間值。 例如,如果 ChartArea1. AxisX. IntervalType 是以小時表示,則 ChartArea1. CursorX 可以設定為分鐘。

適用於