XPTable.Models.Table.ClientXToDisplayRectX C# (CSharp) Method

ClientXToDisplayRectX() public method

Computes the x-coord of the specified client point into an x-coord relative to the display rectangle
public ClientXToDisplayRectX ( int x ) : int
x int
return int
        public int ClientXToDisplayRectX(int x)
        {
            int xPos = x - this.BorderWidth;

            if (this.HScroll)
                xPos += this.hScrollBar.Value;

            return xPos;
        }
Table