SequenceView.HitTest
- Mise à jour2025-07-21
- Temps de lecture : 1 minute(s)
SequenceView.HitTest
Syntax
SequenceView.HitTest( x, y)
Return Value
Returns a numeric item index.
Purpose
Returns the zero-based index of the step at the location you specify. When the location is on the End step, the index is equal to the number of steps in the step group the control displays. A value of -1 indicates the location is not on a step.
Remarks
Use this method to determine the item to which the given coordinates belong. For example, when a user clicks on the control, you might want to determine the item the user clicked.
Parameters
x As Long
[In] Specifies the x-coordinate of the location to test, in pixels, relative to the control.
y As Long
[In] Specifies the y-coordinate of the location to test, in pixels, relative to the control.