Cursor Cursor Cursor Cursor Class

Definition

Represents a horizontal or vertical line that defines a position along an axis.

public ref class Cursor : IDisposable
public class Cursor : IDisposable
type Cursor = class
    interface IDisposable
Public Class Cursor
Implements IDisposable
Inheritance
CursorCursorCursorCursor
Implements

Remarks

A cursor is a horizontal or vertical line that defines a position along an axis. A range selection is a range along an axis that is defined by a beginning and end position, and is displayed using a semi-transparent color.

Cursors and range selections are both implemented by the Cursor class, which is exposed as the CursorX and CursorY properties of the ChartArea object. The CursorX object is for the X axis of a chart area, and the CursorY object is for the Y axis. The AxisType property of these objects determines whether the associated axis is primary or secondary.

The only cursor and range selection functionality found outside the Cursor class are the events related to the cursor and range selection that are in the root Chart object.

Constructors

Cursor() Cursor() Cursor() Cursor()

Initializes a new instance of the Cursor class.

Properties

AutoScroll AutoScroll AutoScroll AutoScroll

Gets or sets a flag that determines whether scrolling will occur if a range selection operation extends beyond a boundary of the chart area.

AxisType AxisType AxisType AxisType

Gets or sets the type of axis that the cursor is attached to.

Interval Interval Interval Interval

Gets or sets the cursor interval.

IntervalOffset IntervalOffset IntervalOffset IntervalOffset

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

IntervalOffsetType IntervalOffsetType IntervalOffsetType IntervalOffsetType

Gets or sets the interval offset type of a cursor and selected range for an axis.

IntervalType IntervalType IntervalType IntervalType

Gets or sets the interval type for the cursor and selected range of an axis.

IsUserEnabled IsUserEnabled IsUserEnabled IsUserEnabled

Gets or sets a flag that enables or disables the cursor user interface.

IsUserSelectionEnabled IsUserSelectionEnabled IsUserSelectionEnabled IsUserSelectionEnabled

Gets or sets a flag that enables or disables the range selection user interface.

LineColor LineColor LineColor LineColor

Gets or sets the cursor line color.

LineDashStyle LineDashStyle LineDashStyle LineDashStyle

Gets or sets the style of the cursor line.

LineWidth LineWidth LineWidth LineWidth

Gets or sets the line width, in pixels, of a cursor

Position Position Position Position

Gets or sets the position of a cursor.

SelectionColor SelectionColor SelectionColor SelectionColor

Gets or sets a semi-transparent color that highlights a range of data.

SelectionEnd SelectionEnd SelectionEnd SelectionEnd

Gets or sets the end position of a range selection.

SelectionStart SelectionStart SelectionStart SelectionStart

Gets or sets the start position of a cursor's selected range.

Methods

Dispose() Dispose() Dispose() Dispose()

Performs application-defined tasks that free, release, or reset unmanaged resources.

Dispose(Boolean) Dispose(Boolean) Dispose(Boolean) Dispose(Boolean)

Releases unmanaged and, optionally, managed resources.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
SetCursorPixelPosition(PointF, Boolean) SetCursorPixelPosition(PointF, Boolean) SetCursorPixelPosition(PointF, Boolean) SetCursorPixelPosition(PointF, Boolean)

Displays a cursor at the specified position. Measured in pixels.

SetCursorPosition(Double) SetCursorPosition(Double) SetCursorPosition(Double) SetCursorPosition(Double)

Sets the position of a cursor within a chart area at the specified axis value.

SetSelectionPixelPosition(PointF, PointF, Boolean) SetSelectionPixelPosition(PointF, PointF, Boolean) SetSelectionPixelPosition(PointF, PointF, Boolean) SetSelectionPixelPosition(PointF, PointF, Boolean)

Sets the start and end positions of a range selection.

SetSelectionPosition(Double, Double) SetSelectionPosition(Double, Double) SetSelectionPosition(Double, Double) SetSelectionPosition(Double, Double)

Sets the position of a selected range within a chart area at the specified axis values.

ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to