Method DeleteRows
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
DeleteRows(int, int)
Takes rows out, as AutoCAD's DeleteRows: their cells, their heights (141) and their count (91). A block of
merged cells shrinks to the rows of it left, and is unmerged where one cell of it is left; where its top row goes,
the first cell of it left keeps its own content, empty where MergeCells(DxfCellRange) emptied it, as AutoCAD 2021
kept it (D28e k1, k4), where the library moved the top left cell's there. A block below the rows moves up. The
rows left keep their kinds, as AutoCAD keeps a kind with each row: the title or the header taken out is left out
(280 1, 281 1 and their flags in 93), the header first and shown where the title goes, and a title or
header moved back into its place by the rows taken is shown again, its 280 or 281 taken out (D28e x1 to x17); the
table's own looks of a kind of which no row is left go from its head with their flags, as AutoCAD took the
header's background and height out with the header (x8). Where the first row of data goes, the table's own looks of
the data are those the next row of data keeps, as AutoCAD 2021 reads them from its first row of data: the row put in
at 0 taken out again gives them back to the table's head as they were (93 6886016), B-12 taken out after a row
put in after it takes them away (D33g k02, k05, k06). A range of cells linked to data shrinks and moves alike, its link named by its new top
left cell, and goes where none of it is left, its DATALINK erased as RemoveDataLink() erases one: where it
is anonymous and nothing else of the file points at it. The rows are taken out of the table's TABLECONTENT too, as
AutoCAD 2021's DeleteRows takes them out: a link the TABLECONTENT names goes with its cell, its DATALINK kept and
no longer tied to the TABLECONTENT (94 1, 330 F6). The record is written once, its cells anew; the block
AutoCAD drew the table with is not drawn anew. The table of rows 10, 8 and 8 that loses its row 1 has rows 10 and 8, its cell
B-12 now in row 1. At the table's first edit while its drawing is open, this or any other, the rows AutoCAD 2021
merges across when it loads a file are merged first, as MergeCells(DxfCellRange) merges them, and written so, as
AutoCAD writes them whenever it saves: the first row, whatever its kind and whether the title is shown, and any other
row of the title's kind, where no block of merged cells reaches out of it and each cell after the block of its first
cell is a text cell of no value or of an empty text (D33b w01 to w38, m01 to m32, D33c e01 to e20). The title Parts
left unmerged over an empty cell is written merged across the two columns; one with X, a space or nought beside it,
or a block, is left as it is.
public void DeleteRows(int row, int rows)
Parameters
rowintThe first row taken out, from nought.
rowsintHow many, one or more, one row at least left.
Exceptions
- ArgumentOutOfRangeException
Thrown when the rows are not of the table's, or none or all of them are taken out.
- InvalidOperationException
Thrown when the table's record does not hold its cells, heights and widths, or the table is erased.