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

ResolveColspan() protected method

Returns the position of the actual cell that renders to the given cell pos. This looks at colspans and returns the cell that colspan overs the given cell (if any)
protected ResolveColspan ( CellPos cellPos ) : CellPos
cellPos CellPos
return CellPos
        protected internal CellPos ResolveColspan(CellPos cellPos)
        {
            Row r = null;
            if (cellPos.Row > -1)
                r = this.TableModel.Rows[cellPos.Row];
            if (r == null)
                return cellPos;
            else
                return new CellPos(cellPos.Row, r.GetRenderedCellIndex(cellPos.Column));
        }
Table