Edit

Share via


Grid.IntervalOffsetType Property

Definition

Gets or sets the interval offset type of major and minor grid lines.

C#
[System.ComponentModel.Bindable(true)]
[System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.Attribute)]
public System.Web.UI.DataVisualization.Charting.DateTimeIntervalType IntervalOffsetType { get; set; }

Property Value

A DateTimeIntervalType enumeration value that indicates the interval type. By default it is not set for major grid lines. The default value for minor grid lines is Auto.

Attributes

Remarks

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 specifying "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 offset type of minor tick marks and grid lines is never affected by the IntervalOffsetType property value.

If this interval offset type is set to Auto, the IntervalType property will be used.

Applies to

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