แก้ไข

แชร์ผ่าน


Grid.IntervalType Property

Definition

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

Property 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, by using the NotSet enumeration value. The default value for minor tick marks and 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 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.

Applies to