CWCursor
The CWCursor object displays a crosshair on a CWGraph to mark a specific point or region on the graph or highlight something programmatically. CWCursor properties define the position and appearance of the cursor. The cursor position corresponds to the coordinate space of the associated plot or to the CWGraph.PlotTemplate if the cursor is not associated with a specific plot.
To interact with the cursors while the program is running, set the TrackMode property.
Properties
Color | Specifies the color of the cursor crosshair and point. |
CrosshairStyle | Specifies the type of lines that identify the cursor position. |
Enabled | Specifies if the CWCursor object generates mouse events or if you can drag the cursor in cursor tracking mode. |
Name | Specifies the name of the cursor. |
Plot | Specifies the plot associated with the cursor. |
PointIndex | Specifies the point associated with the cursor on the plot. |
PointStyle | Specifies the cursor point style. |
SnapMode | Specifies the coordinates available for cursors to align with on a plot. |
Visible | Specifies if the cursor is visible or hidden. |
XPosition | Specifies the current x-axis position of the cursor. The SnapMode property can cause the value to be coerced to a point on one of the current plots. |
YPosition | Specifies the current y-axis position of the cursor. The SnapMode property can cause the value to be coerced to a point on one of the current plots. |
Methods
SetPosition | Sets the x- and y-axis positions of the cursor at the same time. |