แก้ไข

แชร์ผ่าน


Cursor.IntervalOffset Property

Definition

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

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

Property Value

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

Attributes

Remarks

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

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

Applies to