/// <summary> /// Calculates which opening between two letters is closest to a position /// </summary> /// <param name="bounds"> /// Boundaries of the control, should be in absolute coordinates /// </param> /// <param name="text">Text in which the opening will be looked for</param> /// <param name="position"> /// Position to which the closest opening will be found, /// should be in absolute coordinates /// </param> /// <returns>The index of the opening closest to the provided position</returns> public int GetClosestOpening( RectangleF bounds, string text, Vector2 position ) { return(_graphics.GetClosestOpening("input.normal", bounds, text, position)); }