Grid.IntervalOffset 属性

定义

获取或设置网格线的偏移量。Gets or sets the offset of grid lines.

public:
 property double IntervalOffset { double get(); void set(double value); };
[System.ComponentModel.Bindable(true)]
[System.ComponentModel.TypeConverter(typeof(System.Web.UI.DataVisualization.Charting.AxisElementIntervalValueConverter))]
[System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.Attribute)]
public double IntervalOffset { get; set; }
[<System.ComponentModel.Bindable(true)>]
[<System.ComponentModel.TypeConverter(typeof(System.Web.UI.DataVisualization.Charting.AxisElementIntervalValueConverter))>]
[<System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.Attribute)>]
member this.IntervalOffset : double with get, set
Public Property IntervalOffset As Double

属性值

Double

一个 double 值,该值表示间隔偏移量。A double value that represents the interval offset.

属性

注解

默认情况下,不会为轴标签、主要刻度线和主要网格线设置此属性。By default this property is not set for axis labels, major tick marks and major grid lines. 如果未设置,则默认情况下,在设计时显式指定 "未设置",或在运行时为其赋值,则 NotSet 此属性的实际值由 IntervalOffset Axis 图表元素(如网格线或刻度线)所属的对象的属性确定。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 IntervalOffset property of the Axis object that the chart element, such as a grid line or a tick mark, belongs to.

次要刻度线和网格线的间隔偏移量从不受对象属性的值的影响 IntervalOffset AxisThe interval offset of minor tick marks and grid lines is never affected by the value of the IntervalOffset property of the Axis object.

IntervalOffsetType属性设置定义偏移量的度量单位。The IntervalOffsetType property setting defines the units of measurement of the offset.

IntervalOffset可以为负值。The IntervalOffset can be a negative value.

适用于