Axis.IntervalOffset Property

.NET Framework (current version)
 

Gets or sets the interval offset of an axis.

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

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

Property Value

Type: System.Double

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

The IntervalOffset property determines the interval offset of an axis. This value is used as the interval offset of an axis' labels and the major tick marks and grid lines associated with the axis if the IntervalOffset property value of the labels, tick marks, or grid lines is not set, which is represented by a value of NaN.

The IntervalOffset property of the tick marks, labels and grid lines of an axis has priority over the IntervalOffset property setting of the Axis object.

A value of zero represents an "Auto" value. Also, Interval cannot be set to not set (that is, a NaN). If you assign NaN, a value of "Auto"—that is, 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 offset.

The interval offset type of the axis is determined by the IntervalOffsetType property.

.NET Framework
Available since 4.0
Return to top
Show: