Method MergeCells
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
MergeCells(DxfCellRange)
Merges a block of cells into one, as AutoCAD's MergeCells: its top left cell given the block's width and height
in cells (175, 176), as GetMergeRange(int, int) reads them, and 173 0, the others marked merged (173 of
1), as AutoCAD 2021 wrote them (D33e w07); the content of its top left cell is the block's, and the others are
emptied as AutoCAD 2021 empties them
(EmptyMerged(int, int, CellSlices, Func<Layout>, DxfCellRange, bool)), where the library kept them unseen; a cell of a row of the title's kind moved down by a
row put in before it keeps the title's 140 6.0 of AutoCAD's Standard, and is given it for a height of its own
(D33c k01, k02). A block of merged cells within the range becomes part
of it. The title of the table of 3 rows and 2 columns, merged with
the row below it, (0, 0) to (1, 1), gives that range from each of its four cells. The table's TABLECONTENT lists the
range among its merged ranges, those it meets taken out, as AutoCAD 2021 lists a merge, though AutoCAD reads a table's
merges from its ACAD_TABLE. Nothing is written for a range of one cell, or one merged so already; the block AutoCAD
drew the table with is not drawn anew.
public void MergeCells(DxfCellRange range)
Parameters
rangeDxfCellRangeThe block of cells, within the table.
Exceptions
- ArgumentNullException
Thrown when the range is null.
- ArgumentOutOfRangeException
Thrown when the range reaches past the table's rows or columns.
- ArgumentException
Thrown when a block of merged cells reaches across the range's edge, partly in it.
- InvalidOperationException
Thrown when the table's record does not hold its cells, heights and widths, or the table is erased.