Cursor Class
TOC
Collapse the table of content
Expand the table of content

Cursor Class

.NET Framework (current version)
 

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

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

System.Object
  System.Windows.Forms.DataVisualization.Charting.Cursor

public class Cursor : IDisposable

NameDescription
System_CAPS_pubmethodCursor()

Initializes a new instance of the Cursor class.

NameDescription
System_CAPS_pubpropertyAutoScroll

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

System_CAPS_pubpropertyAxisType

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

System_CAPS_pubpropertyInterval

Gets or sets the cursor interval.

System_CAPS_pubpropertyIntervalOffset

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

System_CAPS_pubpropertyIntervalOffsetType

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

System_CAPS_pubpropertyIntervalType

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

System_CAPS_pubpropertyIsUserEnabled

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

System_CAPS_pubpropertyIsUserSelectionEnabled

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

System_CAPS_pubpropertyLineColor

Gets or sets the cursor line color.

System_CAPS_pubpropertyLineDashStyle

Gets or sets the style of the cursor line.

System_CAPS_pubpropertyLineWidth

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

System_CAPS_pubpropertyPosition

Gets or sets the position of a cursor.

System_CAPS_pubpropertySelectionColor

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

System_CAPS_pubpropertySelectionEnd

Gets or sets the end position of a range selection.

System_CAPS_pubpropertySelectionStart

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

NameDescription
System_CAPS_pubmethodDispose()

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

System_CAPS_protmethodDispose(Boolean)

Releases unmanaged and, optionally, managed resources.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodSetCursorPixelPosition(PointF, Boolean)

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

System_CAPS_pubmethodSetCursorPosition(Double)

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

System_CAPS_pubmethodSetSelectionPixelPosition(PointF, PointF, Boolean)

Sets the start and end positions of a range selection.

System_CAPS_pubmethodSetSelectionPosition(Double, Double)

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

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

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.

.NET Framework
Available since 4.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft