OnCursorMoved


Function

 

This event occurs when the cursor moves.

 

Format

 

dncGraph1_OnCursorMoved(object sender, short DeviceNo, CursorMovedEventArgs e)

 

Parameters

 

sender [ C#: object ] [ VB.NET: object ]

Event source.

 

DeviceNo [ C#: short ] [ VB.NET: Short ]

Returns the device No. where the event occurred.

However, if it occurs in DncGraph itself, -1 is returned.

 

e [ C#: CursorMovedEventArgs  ] [ VB.NET: CursorMovedEventArgs  ]

Event arguments. Details are shown below.

 

Event argument

 

Arguments

C# Type

VB.NET Type

Description

Type

short

Short

Gets the target cursor.
(0: cursor A, 1: cursor B)

LineNo

short

Short

Gets the line No. that the cursor is targeting.

XCursorData

float

Single

Gets the X-axis data for the line that the cursor is targeting.
If both cursors A and B are enabled, it will be the difference (B-A).

YCursorData

float

Single

Gets the Y-axis data for the cursor.
If both cursors A and B are enabled, it will be the difference (B-A).

CrossPointNum

short

Short

Gets the number of intersections between the cursor and the graph line.

 

Remarks

 

This event is used to get related information when the cursor moves.