Axis.IntervalOffsetType Property

.NET Framework (current version)

Gets or sets the interval offset type of an axis.

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

public DateTimeIntervalType IntervalOffsetType { get; set; }

Property Value

Type: System.Windows.Forms.DataVisualization.Charting.DateTimeIntervalType

The interval offset type of an axis. The default value is Auto.

This property determines the interval offset type of an axis, and is used for the interval offset type of an axis' labels, and major tick marks or grid lines if the axis element's own IntervalOffsetType property value is set to NotSet.

Setting this property to NotSet will result in a value of Auto being used (only the axis elements such as major grid lines, etc. can be set to NotSet).


The minor grid lines and tick marks of an axis never use this property for their interval offset type.

The interval of the axis is determined by the IntervalOffset property.

.NET Framework
Available since 4.0
Return to top