Method SetColumnWidths
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
SetColumnWidths(CadDocument, string, int, IReadOnlyList<double>)
Sets the widths of columns, from one on, in one undo step, "Column Width", as a drag of a column's line does; the rows then grow to hold text that wraps anew. A width below MinimumColumnWidth(DxfTable, int) is taken as that, as AutoCAD 2021 holds a column there: columns of 30 and 22.5 given 38 and 14.5 keep the table's width, and one given 1 in AutoCAD's Standard is 9 wide.
public static CadEditResult SetColumnWidths(CadDocument document, string handle, int column, IReadOnlyList<double> widths)
Parameters
documentCadDocumentThe document.
handlestringThe table's handle.
columnintThe first column, from nought.
widthsIReadOnlyList<double>The widths of it and the columns after it.
Returns
- CadEditResult
What came of it; nothing written where every width is as it was.