XPosition Property

Measurement Studio User Interface

XPosition Property

Syntax

CWCursor.XPosition

Data Type

Variant

Purpose

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.

Remarks

If you are setting both the X and Y positions of a cursor, you should use the SetPosition method.

Example

'Access the X position of the second cursor
x = CWGraph1.Cursors.Item(2).XPosition

See Also

CWCursor.SnapMode

CWCursor.SetPosition