Table of Contents

Method InsertRowsAndInherit

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

InsertRowsAndInherit(int, int, int)

Puts rows in that take the look of another, as AutoCAD's InsertRowsAndInherit: as InsertRows(int, double, int), the rows of the height of the row given, and each cell of them an empty text cell with the look the cell of that row in its column holds of its own: its overrides with their flags (177, or 91 from R2007 on), wherever they stand outside its value, and the edges of its lines (172), its turn (145), and from R2007 on the kind (90, 512 for a value of no kind), unit (94) and format (300) of its value, the value the empty one of the flags 5 AutoCAD 2021 wrote; not its content. The blocks of merged cells across that row are merged across each new row alike, the title's too (D28d m1, m3, i1). The new rows are of that row's kind, as AutoCAD 2021 keeps them: of the title's or the header's where it is the title or the header, each cell given as its own the looks of that kind the data's are not, the title's 170 5 and 140 6.0 of AutoCAD's Standard, and the table's own of that kind, unless it is put in the place of that kind; a title or header moved out of its place leaves it out (280 1, 281 1) and takes those looks alike, as InsertRows(int, double, int) writes them (D28d i1 to i9). The table given a row of its title's look after its last has a fourth row merged across, 6 high, read as data. The new rows keep the looks that row keeps of its own, as AutoCAD 2021 kept them: a row put in taking the look of B-12, which a row put in at 0 took the table's own looks of the data from, is given GH_TXT, red, 9 and top left by a clear of 2, and one taking the look of a row put in none (D33g h01, h03). In the TABLECONTENT the new rows take that row's style, a row of data from a row of data, and each cell the format of that row's cell in its column as it stands, its margins and lines, and an empty value of the flags 5 with the format of that cell's content where it holds one, as AutoCAD 2021 wrote them (D28c i1 to i7).

public void InsertRowsAndInherit(int index, int inheritFrom, int numRows)

Parameters

index int

The row the new ones go before, from nought; NumRows for after the last.

inheritFrom int

The row whose look they take, one of the table's as it stands before they go in.

numRows int

How many, one or more.

Exceptions

ArgumentOutOfRangeException

Thrown when the place is none of nought to NumRows, the row whose look they take is not one of the table's, or the count is below one.

InvalidOperationException

Thrown when the table's record does not hold its cells, heights and widths, or the table is erased.