Share via


Grid.IntervalOffsetType 屬性

定義

取得或設定主要和次要格線的間隔位移類型。

public:
 property System::Windows::Forms::DataVisualization::Charting::DateTimeIntervalType IntervalOffsetType { 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 IntervalOffsetType { get; set; }
[<System.ComponentModel.Bindable(true)>]
member this.IntervalOffsetType : System.Windows.Forms.DataVisualization.Charting.DateTimeIntervalType with get, set
Public Property IntervalOffsetType As DateTimeIntervalType

屬性值

表示間隔類型的 DateTimeIntervalType 列舉值。 根據預設,主要格線不會設定此值。 如果是次要格線,預設值為 Auto

屬性

備註

根據預設,此屬性不會針對座標軸標籤、主要刻度標記和主要格線設定。 如果未設定 , 預設為明確指定 「未設定」,或是在執行時間指派 的值 NotSet ,則此屬性的實際值是由 IntervalOffsetType 圖表專案 - 格線或刻度標記的物件屬性 Axis 所決定。

次要刻度和格線的間隔位移類型永遠不會受到 IntervalOffsetType 屬性值的影響。

如果這個間隔位移類型設定為 AutoIntervalType 則會使用 屬性。

適用於