Flood.GUI.Controls.Label.GetClosestCharacter C# (CSharp) Method

GetClosestCharacter() protected method

Returns index of the character closest to specified point (in canvas coordinates).
protected GetClosestCharacter ( int x, int y ) : int
x int
y int
return int
        protected int GetClosestCharacter(int x, int y)
        {
            return m_Text.GetClosestCharacter(m_Text.CanvasPosToLocal(new Vector2i(x, y)));
        }