YPosition Property

Measurement Studio User Interface

YPosition Property

Syntax

CWCursor.YPosition

Data Type

Variant

Purpose

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.

Remarks

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

Example

'Set the Y position of the first cursor
CWGraph1.Cursors.Item(1).YPosition = YLimit

See Also

SnapMode

SetPosition