Constructor DxfTable
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
DxfTable(GeoPoint3, int, int, double, double)
Initializes a table in no file, as AutoCAD's new Table() given its Position and SetSize: rows of
one height and columns of one width, every cell an empty text cell that takes its look from the table style, to be
added to a drawing by AppendEntity(DxfEntity). Added, it names the drawing's current
table style (Tablestyle, where the drawing has it), its first row is merged across the table
as AutoCAD's title is, and it is drawn in a new anonymous block (*T1 and on) by
RecomputeTableBlock(): new DxfTable(new GeoPoint3(0, 0, 0), 6, 5, 9, 63.5) is a table 317.5 wide
and 54 high, its top left at the origin, its title, header and four rows of data in five columns.
public DxfTable(GeoPoint3 position, int numRows, int numColumns, double rowHeight, double columnWidth)
Parameters
positionGeoPoint3The top left corner, in world coordinates.
numRowsintThe number of rows, one or more.
numColumnsintThe number of columns, one or more.
rowHeightdoubleThe height of each row, a finite number above nought.
columnWidthdoubleThe width of each column, a finite number above nought.
Exceptions
- ArgumentOutOfRangeException
Thrown when the rows or the columns are fewer than one, or a size is not a finite number above nought.
- ArgumentException
Thrown when the point is not finite.