CWCursor

Measurement Studio User Interface

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

ColorSpecifies the color of the cursor crosshair and point.
CrosshairStyleSpecifies the type of lines that identify the cursor position.
EnabledSpecifies if the CWCursor object generates mouse events or if you can drag the cursor in cursor tracking mode.
NameSpecifies the name of the cursor.
PlotSpecifies the plot associated with the cursor.
PointIndexSpecifies the point associated with the cursor on the plot.
PointStyleSpecifies the cursor point style.
SnapModeSpecifies the coordinates available for cursors to align with on a plot.
VisibleSpecifies if the cursor is visible or hidden.
XPositionSpecifies 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.
YPositionSpecifies 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

SetPositionSets the x- and y-axis positions of the cursor at the same time.

See Also

CWCursors