Axis.Interval 属性

定义

获取或设置轴的间隔。Gets or sets the interval of an axis.

public:
 property double Interval { double get(); void set(double value); };
[System.ComponentModel.Bindable(true)]
[System.ComponentModel.TypeConverter(typeof(System.Windows.Forms.DataVisualization.Charting.AxisIntervalValueConverter))]
public double Interval { get; set; }
member this.Interval : double with get, set
Public Property Interval As Double

属性值

一个 double 值,该值表示轴的间隔。A double value that represents the interval of an axis. 默认值为“Auto”,由值零 (0) 表示。The default value is "Auto", which is represented by a value of zero (0).

属性

注解

此属性用于确定标签、刻度线或网格线的 Interval 属性值设置为 NaN时,绘制与轴关联的标签和主要刻度线和网格线的频率,这表示未设置该属性。This property determines how often the labels and major tick marks and grid lines associated with the axis are drawn if the Interval property value of a label, tick mark, or grid line is set to NaN, which signifies that it is not set.

轴的主要刻度线、网格线或标签的 Interval 属性的优先级高于 Axis 对象的 Interval 属性设置。The Interval property of a major tick mark, grid line or label of the axis has priority over the Interval property setting of the Axis object.

值为零表示 "自动" 值。A value of zero represents an "Auto" value. Interval 属性不能设置为 NaNThis Interval property cannot be set to NaN. 如果将此属性的值指定为 NaN,则将改用零值。If you assign this property a value of NaN, a value of zero will be used instead.

注意轴的次要网格线和刻度线决不会将此属性用于其间隔。Note The minor grid lines and tick marks of an axis never use this property for their interval.

轴的间隔类型由 IntervalType 属性确定。The interval type of the axis is determined by the IntervalType property.

适用于