TextEdit.InsertionPosAtXY
From Xojo Documentation
This item was deprecated in version 2019r2. Please use TextEdit.InsertionPoint as a replacement. |
Method
TextEdit.InsertionPosAtXY(X as Integer, Y as Integer) As Integer
Supported for all project types and targets.
Supported for all project types and targets.
Returns (as an Integer) returns the position of the insertion point closest to pixel coordinates X,Y relative to the control. The returned value is zero-based.
Example
This example is in the MouseDown event of a TextArea. This event passes in the X,Y coordinates of the MouseDown event and the method returns the corresponding character position.