Table of Contents

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

document CadDocument

The document.

handle string

The table's handle.

column int

The first column, from nought.

widths IReadOnlyList<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.