This documentation is archived and is not being maintained.

Grid.IntervalOffsetType Property

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

Namespace:  System.Web.UI.DataVisualization.Charting
Assembly:  System.Web.DataVisualization (in System.Web.DataVisualization.dll)

public DateTimeIntervalType IntervalOffsetType { get; set; }

Property Value

Type: System.Web.UI.DataVisualization.Charting.DateTimeIntervalType
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.

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.

.NET Framework

Supported in: 4

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.