Redigera

Dela via


Axis.Interval Property

Definition

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; }
[<System.ComponentModel.Bindable(true)>]
[<System.ComponentModel.TypeConverter(typeof(System.Windows.Forms.DataVisualization.Charting.AxisIntervalValueConverter))>]
member this.Interval : double with get, set
Public Property Interval As Double

Property Value

A double value that represents the interval of an axis. The default value is "Auto", which is represented by a value of zero (0).

Attributes

Remarks

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.

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. This Interval property cannot be set to 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.

The interval type of the axis is determined by the IntervalType property.

Applies to