Edytuj

Udostępnij za pośrednictwem


Cursor.Interval Property

Definition

Gets or sets the cursor interval.

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

Property Value

The cursor interval.

Attributes

Remarks

The Interval property determines how often and where a cursor can be drawn by an end user, as well as where the beginning and end points of a range selection can be drawn. A value of zero, which is the default value, signifies that a cursor or range selection can be drawn anywhere within a chart area. A nonzero value signifies that the cursor or beginning and/or end points of a selected range will only be drawn at the specified interval when set by user interaction.

The unit of measurement is determined by the IntervalType property.

This property can also be used in conjunction with the IntervalOffset property, which allows you to specify an offset from the specified interval. 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

The Interval property has no effect if you set the position of a cursor or range selection programmatically.

Applies to