System.Windows.Forms.HexBox.GetGridBytePoint C# (CSharp) Method

GetGridBytePoint() private method

private GetGridBytePoint ( long byteIndex ) : Point
byteIndex long
return Point
        Point GetGridBytePoint(long byteIndex)
        {
            int row = (int)Math.Floor((double)byteIndex/(double)_iHexMaxHBytes);
            int column = (int)(byteIndex+_iHexMaxHBytes-_iHexMaxHBytes*(row+1));

            Point res = new Point(column, row);
            return res;
        }