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

VScrollOffset() private method

Computes the height of the rows that are not visible (i.e. above the top row currently displayed).
private VScrollOffset ( ) : int
return int
        private int VScrollOffset()
        {
            int yOffset;
            // This adds on the total height we can't see
            if (this.EnableWordWrap)
            {
                yOffset = this.RowY(this.TopIndex);
            }
            else if (this.TopIndex >= 0)
            {
                yOffset = this.TopIndex * this.RowHeight;
            }
            else
            {
                // this might happen if this.TopIndex is -1
                yOffset = 0;
            }

            return yOffset;
        }
Table