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

RowRect() public method

Returns the bounding rectangle of the row at the specified index in client coordinates
public RowRect ( int row ) : Rectangle
row int The index of the row
return Rectangle
        public Rectangle RowRect(int row)
        {
            if (this.TableModel == null || this.ColumnModel == null || row == -1 || row > this.TableModel.Rows.Count)
                return Rectangle.Empty;

            Rectangle rect = new Rectangle();

            rect.X = this.DisplayRectangleLeft;

            if (this.EnableWordWrap)
            {
                rect.Y = this.BorderWidth + RowIndexToClient(row);
                rect.Height = this.TableModel.Rows[row].Height;
            }
            else
            {
                rect.Y = this.BorderWidth + ((row - this.TopIndex) * this.RowHeight);
                rect.Height = this.RowHeight;
            }

            rect.Width = this.ColumnModel.VisibleColumnsWidth;

            if (this.HeaderStyle != ColumnHeaderStyle.None)
                rect.Y += this.HeaderHeight;

            return rect;
        }

Same methods

Table::RowRect ( Row row ) : Rectangle
Table