Method GetCellExtents
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
GetCellExtents(int, int, bool)
Gets the corners of a cell, as AutoCAD's GetCellExtents gives them: from the table's point along its direction
by the widths of the columns before it, and down (up where its rows flow up) by the heights of the rows before it, in
the plane of its normal; the cell (1, 1) of columns 40 and 30 wide and rows 10 and 8 high from (300, -100, 0) is
(340, -110, 0), (370, -110, 0), (370, -118, 0) and (340, -118, 0).
public IReadOnlyList<GeoPoint3> GetCellExtents(int row, int col, bool isOuterCell)
Parameters
rowintThe row, from nought.
colintThe column, from nought.
isOuterCellboolWhether the corners are those of the block of merged cells it is in, as GetMergeRange(int, int) gives it.
Returns
- IReadOnlyList<GeoPoint3>
The four corners, the top left first, then about the cell.
Exceptions
- ArgumentOutOfRangeException
Thrown when the cell is not one of the table's.