Redigera

Dela via


Axis.IntervalOffset Property

Definition

Gets or sets the interval offset of an axis.

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

Property Value

A double value that represents the interval offset of an axis. The default value is "Auto", which is represented by a value of zero (0).

Attributes

Remarks

The IntervalOffset property determines the interval offset of an axis. This value is used as the interval offset of an axis' labels and the major tick marks and grid lines associated with the axis if the IntervalOffset property value of the labels, tick marks, or grid lines is not set, which is represented by a value of NaN.

The IntervalOffset property of the tick marks, labels and grid lines of an axis has priority over the IntervalOffset property setting of the Axis object.

A value of zero represents an "Auto" value. Also, Interval cannot be set to not set (that is, a NaN). If you assign NaN, a value of "Auto" - that is, a value of zero - will be used instead.

Note The minor grid lines and tick marks of an axis never use this property for their interval offset.

The interval offset type of the axis is determined by the IntervalOffsetType property.

Applies to