This topic has not yet been rated - Rate this topic

Cursor.IntervalOffset Property

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.5, 4

.NET Framework Client Profile

Supported in: 4

Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.