共用方式為


Axis.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 A 代表軸的區間類型。 預設值為 Auto

屬性

備註

此性質決定軸的區間類型,若軸元素本身 IntervalType 屬性值設為 NotSet,則用於軸標註、主要刻度標記或主要格線的區間類型。

將此屬性設為 會 NotSet 產生一個被使用的值 Auto 。 只有軸向元素,例如格線,才能設定為 NotSet

軸的次要格線與刻度標記從不使用此性質作為區間類型。

軸的區間由性質 Interval 決定。

這很重要

如果軸間隔類型以小時、分鐘等時間表示,則為了讓縮放正常運作,也 IntervalType 必須設定為時間值。 例如,如果 ChartArea1.AxisX.IntervalType 設為小時,那麼 ChartArea1.CursorX.IntervalType 可以設為分鐘。

適用於