Using the Process Analyst > Process Analyst for Developers > Automation Model > ITrendCursor.Position [Property][Get/Set]

ITrendCursor.Position [Property][Get/Set]

Get or Set the cursor's physical position in the Process Analyst.

Defined As

Execution Result

If the property get/set succeeds, the return value will be Success. If the return variable is bad, the return value will be InvalidArgument. If the cursor is deleted, the return value will be GeneralFailure.

Remarks

The cursor position is measured as the number of pixels from the left of the Process Analyst graph.

Calling Syntax

This example assumes you have a valid reference to a cursor.

[VBA]

Sub Example(cursor As Object)
Dim position As Integer
`Getting Property value
position = cursor.Position
`Setting Property value
cursor.Position = 300
End Sub

[Cicode]

FUNCTION Example(OBJECT hCursor)
INT position;
// Getting current property value
position = _ObjectGetProperty(hCursor, "Position");
// Setting Property to (300)
_ObjectSetProperty(hCursor, "Position", 300);
END