StyledText.getOffsetAtPoint

Returns the offset at the specified x location in the specified line.

@param x x location of the mouse location @param line line the mouse location is in @return the offset at the specified x location in the specified line, relative to the beginning of the document

  1. int getOffsetAtPoint(int x, int y)
  2. int getOffsetAtPoint(int x, int y, int lineIndex)
    class StyledText
    package
    int
    getOffsetAtPoint
    (
    int x
    ,
    int y
    ,)
  3. int getOffsetAtPoint(int x, int y, int[] trailing, bool inTextOnly)

Meta