Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
IntervalOffset Property

Cursor.IntervalOffset Property

.NET Framework 4.6 and 4.5

Gets or sets the interval offset, which affects where the cursor and range selection can be drawn when they are set by a user.

Namespace:  System.Windows.Forms.DataVisualization.Charting
Assembly:  System.Windows.Forms.DataVisualization (in System.Windows.Forms.DataVisualization.dll)

[BindableAttribute(true)]
public double IntervalOffset { get; set; }

Property Value

Type: System.Double
The offset from the interval. The default value is zero, which signifies no limitations, and negative values are allowed.

The IntervalOffset property determines the interval offset of a cursor and the beginning and/or end points of a range selection. In conjunction with the Interval property, this property determines where a cursor and range can be displayed within a chart area. A value of zero, which is the default, signifies that there is no offset.

The unit of measurement is determined by the IntervalOffsetType property.

The offset affects the locations at which a cursor and the beginning and/or end points of a range selection can be drawn. For example, to allow a cursor to only be displayed every Saturday, an interval of 1 week should be specified, along with an interval offset of 6 days. In .NET Framework, Sunday is considered to be the first day of the week.

If the cursor user interface is enabled by setting the IsUserEnabled property, and the mouse is clicked inside a chart area, the position of the cursor will be set to the nearest allowable location.

Important noteImportant

Interval-related properties have no effect when a range selection or cursor position are set programmatically.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4
Show:
© 2015 Microsoft