Export (0) Print
Expand All

Axis.Interval Property

.NET Framework 4.6 and 4.5

Gets or sets the interval of an axis.

Namespace:  System.Windows.Forms.DataVisualization.Charting
Assembly:  System.Windows.Forms.DataVisualization (in System.Windows.Forms.DataVisualization.dll)

[BindableAttribute(true)]
public double Interval { get; set; }

Property Value

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

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.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4
Show:
© 2015 Microsoft