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

CellRect() public method

Returns a Rectangle that specifies the size and location of the specified cell in client coordinates
public CellRect ( Cell cell ) : Rectangle
cell Cell The cell whose bounding rectangle is to be retrieved
return System.Drawing.Rectangle
        public Rectangle CellRect(Cell cell)
        {
            if (cell == null || cell.Row == null || cell.InternalIndex == -1)
                return Rectangle.Empty;

            if (this.TableModel == null || this.ColumnModel == null)
                return Rectangle.Empty;

            int row = this.TableModel.Rows.IndexOf(cell.Row);
            int col = cell.InternalIndex;

            return this.CellRect(row, col);
        }

Same methods

Table::CellRect ( XPTable.Models.CellPos cellPos ) : Rectangle
Table::CellRect ( int row, int column ) : Rectangle
Table