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.IntervalType 可以设置为分钟。

适用于