Method SetSize
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
SetSize(int, int)
Gives the table a number of rows and of columns, as AutoCAD's SetSize: rows and columns taken out from the
bottom and the right, or put in there, each new row 4/3 of the text height the table style gives the data and twice
the margin above and below a cell's content (VerticalCellMargin), 9 for AutoCAD's Standard of 4.5 and
1.5 whatever the rows above, as AutoCAD 2021 made them (D28d h1 to h9), the first row put into a table of one row
the header, shown again where the table had left it out, as InsertRows(int, double, int) puts it in (D28e s4 to s6),
rows taken out leaving the kinds of those left as DeleteRows(int, int) does, and each new column as wide as AutoCAD
2021 made one, the text height of its first row whose new cell is merged with none (the header, where the title is
merged across the table) and the margins either side of a cell's content (7.5 for AutoCAD's Standard, 4.5 and 1.5;
9 where the title is unmerged, its 6; 1 in a table of one row, its title merged across it, D28c w1), of empty text
cells, those of the new columns given the looks their rows keep, as InsertColumns(int, double, int) gives them, those of
the new rows none, as AutoCAD 2021 kept none with a row its SetSize put in (D33g e01, g05); the title merged across every column is merged anew over the new ones, as
InsertColumns(int, double, int) merges it (D28d g4), and no other
block grows, a column merged down to the last row nor a title merged across some of the columns (D28c w3, m1); blocks
of merged cells and ranges linked to data cut where they reach past the new size, in the TABLECONTENT too, as
InsertRows(int, double, int) and DeleteRows(int, int) write it. Nothing is written where the table is of that size.
The table of 3 rows and 2 columns given 5 and 2 has two more rows 9 high; given 3 and 3, a column 7.5 wide, its title
across the three.
public void SetSize(int numRows, int numCols)
Parameters
Exceptions
- ArgumentOutOfRangeException
Thrown when a number is below one.
- InvalidOperationException
Thrown when the table's record does not hold its cells, heights and widths, or the table is erased.