Export (0) Print
Expand All
1 out of 3 rated this helpful - Rate this topic

Axis.IntervalType Property

Gets or sets the interval type of an axis.

Namespace:  System.Windows.Forms.DataVisualization.Charting
Assembly:  System.Windows.Forms.DataVisualization (in System.Windows.Forms.DataVisualization.dll)
public DateTimeIntervalType IntervalType { get; set; }

Property Value

Type: System.Windows.Forms.DataVisualization.Charting.DateTimeIntervalType
A DateTimeIntervalType that represents the interval type of an axis. The default value is Auto.

This property determines the interval type of an axis, and is used for the interval type of an axis' labels, major tick marks, or major grid lines if the axis element's own IntervalType 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 grid lines, can be set to NotSet.

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

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

Important noteImportant

If the axis interval type is represented by a time such as hours, minutes, and so forth, then in order for zooming to function correctly, the IntervalType must be set to a time value as well. For example, if ChartArea1.AxisX.IntervalType is set to hours, then ChartArea1.CursorX.IntervalType could be set to minutes.

.NET Framework

Supported in: 4.5.1, 4.5, 4

.NET Framework Client Profile

Supported in: 4

Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.