RowColCodeFromPoint Method
Description
Returns the column and row in the syntax editor at the specified x and y coordinates.
Syntax
Public Function RowColCodeFromPoint( _
ByVal x As Long, _
ByVal y As Long, _
ByRef Row As Long, _
ByRef Col As Long _
) As Boolean
Parameters
- x: x coordinates to test.
- y: y coordinates to test.
- Row: [out] Row in the syntax editor at the specified x and y coordinates.
- Col: [out] Column in the syntax editor at the specified x and y coordinates.
Return Type
Returns True if the coordinates are inside the syntax editor, False otherwise.
Remarks
RowColCodeFromPoint returns the column and row in the syntax editor at the specified x and y coordinates. This can be used with the MouseMove event to get the x and y coordinates of the mouse. Using this information, you can get the related row and column.
A common use for this feature is to get the column and row to drag-and-drop a piece of code or for syntax validation.
See Also
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.