/// <summary> /// Returns index of the character closest to specified point (in canvas coordinates). /// </summary> /// <param name="x"></param> /// <param name="y"></param> /// <returns></returns> protected virtual Point getClosestCharacter(int x, int y) { return(new Point(text.GetClosestCharacter(text.CanvasPosToLocal(new Point(x, y))), 0)); }