Method InsertRows
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
InsertRows(int, double, int)
Puts rows in, as AutoCAD's InsertRows: as many rows as asked, of the height given, before a row (after the
last for NumRows), each of empty text cells that take their look from the table style; the count of rows
(91) and their heights (141) are written with them, each as a real, as AutoCAD 2021 writes it, 9 as 141 9.0
(D37). A block of merged cells the rows go into grows by them, one they
go above moves down with its rows, and so does a range of cells linked to data. The rows go into the table's
TABLECONTENT too, where it has one, as AutoCAD 2021's InsertRows writes them: rows of data of empty cells,
a link the TABLECONTENT names moving and growing with its cells, as AutoCAD reads it there, and the merged ranges it
lists alike. The record is written once, its cells anew, so that 16 000 rows go in in time linear in its groups; the
block AutoCAD drew the table with is not drawn anew. The table of rows 10, 8 and 8 given two rows 6 high before its row 2 has rows 10, 8, 6, 6 and 8, its cell B-12
now in row 4. Rows put in before the title or the header are of data, as AutoCAD 2021 keeps them: the record tells
a row's kind by its place alone, so the table leaves the title out (280 1) where a row goes in before it and
the header (281 1) where one goes in before it, and the cells of each, data now, take as their own the looks
of their kind the data's are not, the title's 170 5 and 140 6.0 of AutoCAD's Standard, the header's
170 5, and the table's own of their kind (D28d r1 to r7). Rows put in at or before the first row of data take
the table's own looks of the data away from it, the rows of data that were given them as their own, as AutoCAD reads
those looks from the first row of data (D28d d1 to d3); a row that keeps looks of its own keeps those. AutoCAD 2021
keeps the looks of each row with the row, and a row put in keeps none: a clear of the cells' overrides of 2 and a
column put in give its cells none, the table of its own looks of the data given a row after B-12 and cleared of 2
writing the new row's cells 91 0 (D33f a04, D33g g01, k07). The first row put into a table of one row is the header and
the rest data, as AutoCAD 2021 gave them, the header shown again where the table had left it out, and a header put
after a lone row of data read as data in the header's alignment (D28e s8, s15, s17, e07 to e12). The table given a
row before its title reads every row as data, Parts still 6 high and in the middle.
public void InsertRows(int row, double height, int rows)
Parameters
rowintThe row the new ones go before, from nought; NumRows for after the last.
heightdoubleThe height of each, a finite number above nought.
rowsintHow many, one or more.
Exceptions
- ArgumentOutOfRangeException
Thrown when the row is none of nought to NumRows, the count is below one, or the height is not a finite number above nought.
- InvalidOperationException
Thrown when the table's record does not hold its cells, heights and widths, or the table is erased.