public LayoutTable(int rows, int columns, Page page)
 {
     if (rows <= 0)
     {
         throw new ArgumentOutOfRangeException("rows");
     }
     if (columns <= 0)
     {
         throw new ArgumentOutOfRangeException("columns");
     }
     if (page != null)
     {
         this.Page = page;
     }
     for (int i = 0; i < rows; i++)
     {
         TableRow row = new TableRow();
         this.Rows.Add(row);
         for (int j = 0; j < columns; j++)
         {
             TableCell cell = new LayoutTableCell();
             row.Cells.Add(cell);
         }
     }
 }
예제 #2
0
        public LayoutTable(int rows, int columns, Page page)
        {
            if (rows <= 0)
            {
                throw new ArgumentOutOfRangeException("rows");
            }
            if (columns <= 0)
            {
                throw new ArgumentOutOfRangeException("columns");
            }

            // page may be null in the designer
            if (page != null)
            {
                this.Page = page;
            }

            for (int r = 0; r < rows; r++)
            {
                TableRow row = new TableRow();
                Rows.Add(row);
                for (int c = 0; c < columns; c++)
                {
                    TableCell cell = new LayoutTableCell();
                    row.Cells.Add(cell);
                }
            }
        }
예제 #3
0
 public LayoutTable(int rows, int columns, Page page)
 {
     if (rows <= 0)
     {
         throw new ArgumentOutOfRangeException("rows");
     }
     if (columns <= 0)
     {
         throw new ArgumentOutOfRangeException("columns");
     }
     if (page != null)
     {
         this.Page = page;
     }
     for (int i = 0; i < rows; i++)
     {
         TableRow row = new TableRow();
         this.Rows.Add(row);
         for (int j = 0; j < columns; j++)
         {
             TableCell cell = new LayoutTableCell();
             row.Cells.Add(cell);
         }
     }
 }
예제 #4
0
        public LayoutTable(int rows, int columns, Page page) {
            if (rows <= 0) {
                throw new ArgumentOutOfRangeException("rows");
            }
            if (columns <= 0) {
                throw new ArgumentOutOfRangeException("columns");
            }

            // page may be null in the designer
            if (page != null) {
                this.Page = page;
            }

            for (int r = 0; r < rows; r++) {
                TableRow row = new TableRow();
                Rows.Add(row);
                for (int c = 0; c < columns; c++) {
                    TableCell cell = new LayoutTableCell();
                    row.Cells.Add(cell);
                }
            }
        }