Gets or sets the interval type.
Grid or mark interval type.
Visual Basic (Declaration) | |
---|---|
Public Property IntervalType As DateTimeIntervalType |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public DateTimeIntervalType IntervalType {get; set;} |
Return Value
A DateTimeIntervalType enumeration value that indicates the interval type. By default it is not set for axis labels, major tick marks and major grid lines (DateTimeIntervalType.NotSet). The default value for minor tick marks and grid lines is DateTimeIntervalType.Auto.
By default this property is not set for axis labels, major tick marks and major grid lines. If it is not set (by default, or explicitly at design time using "NotSet" or at run-time by assigning DateTimeIntervalType.NotSet) then the actual value of this property is determined by the IntervalType property of the Axis object that the chart element (e.g. grid line, tick mark) belongs to.
The interval type of minor tick marks and grid lines is never affected by the Axis.IntervalType property value.
Interval types can be set to "Auto", and the type of interval then depends on either the X-values or Y-values of the plotted DataPoint objects, depending on which axis the applicable elements belong to.
Setting the IntervalType property for a value axis will only have an effect if the values of data points are Date/Time or Double values (also the XValueType or YValueType property of the plotted Series must be set to "Auto" or "DateTime").
Setting the IntervalType property for a categorical axis will only have an effect if the XValueType property (or YValueType property, depending on the axis in question) of the plotted Series object is either "Auto" or "DateTime".
Note that Sunday is considered the first day of the week.
For a detailed discussion of interval-related properties see the Setting Axis Label Intervals topic (also applies to grid lines, tick marks and strip lines).
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