Gets or sets the interval type of an axis.
Axis interval type.
Visual Basic (Declaration) | |
---|---|
Public Property IntervalType As DateTimeIntervalType |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public DateTimeIntervalType IntervalType {get; set;} |
Return Value
The interval type of an axis. Defaults to DateTimeIntervalType.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 DateTimeIntervalType.NotSet.
Setting this property to DateTimeIntervalType.NotSet will result in a value of DateTimeIntervalType.Auto being used (only the axis elements such as grid lines, etc. can be set to DateTimeIntervalType.NotSet).
Note that 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: If the axis interval type is a time (e.g. hours, minutes, etc.) then in order to have zooming function correctly the Cursor.IntervalType must be set to a time value as well. For example, if ChartArea1.AxisX.IntervalType is hours then ChartArea1.CursorX.IntervalType could be set to minutes.
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family