Grid.IntervalType Property
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the interval type for major or minor grid lines.
public:
property System::Web::UI::DataVisualization::Charting::DateTimeIntervalType IntervalType { System::Web::UI::DataVisualization::Charting::DateTimeIntervalType get(); void set(System::Web::UI::DataVisualization::Charting::DateTimeIntervalType value); };
[System.ComponentModel.Bindable(true)]
[System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.Attribute)]
public System.Web.UI.DataVisualization.Charting.DateTimeIntervalType IntervalType { get; set; }
[<System.ComponentModel.Bindable(true)>]
[<System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.Attribute)>]
member this.IntervalType : System.Web.UI.DataVisualization.Charting.DateTimeIntervalType with get, set
Public Property IntervalType As DateTimeIntervalType
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, by using the NotSet enumeration value. The default value for minor tick marks and grid lines is Auto.
- Attributes
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.
Product | Versions |
---|---|
.NET Framework | 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: