Grid::IntervalType Property
Gets or sets the interval type for major or minor grid lines.
Assembly: System.Web.DataVisualization (in System.Web.DataVisualization.dll)
[BindableAttribute(true)] [PersistenceModeAttribute(PersistenceMode::Attribute)] public: property DateTimeIntervalType IntervalType { DateTimeIntervalType get (); void set (DateTimeIntervalType value); }
Property Value
Type: System.Web.UI.DataVisualization.Charting::DateTimeIntervalTypeA DateTimeIntervalType enumeration value that indicates the interval type. By default it is not set for axis labels, major tick marks and major grid lines, by using the NotSet enumeration value. The default value for minor tick marks and grid lines is Auto.
By default this property is not set for axis labels, major tick marks and major grid lines. If it is not set—either by default, by explicitly using "Not Set" at design time, or by assigning it a value of NotSet at run time— the actual value of this property is determined by the IntervalOffsetType property of the Axis object that the chart element—a grid line or tick mark, for example—belongs to.
The interval type of minor tick marks and grid lines is never affected by the value of the IntervalType property.
Interval types can be set to Auto; 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 the data points are DateTime 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 |
|---|
Sunday is considered the first day of the week. |
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Note