Table of Contents

Method SetDynamicColumns

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

SetDynamicColumns(double, double, bool)

Sets the MTEXT in dynamic columns, as AutoCAD's SetDynamicColumns: columns as wide as given, a gutter between them, which AutoCAD fills with the words as they flow; all as high as the MTEXT's Height where their height is automatic, else each of its own, given the MTEXT's Height to start with and set by SetColumnHeight(int, double). The count of columns is kept, 1 where the MTEXT had none; written as ColumnType says, the MTEXT's Width made to agree, as SetStaticColumns(double, double, int) makes it: that of the columns the MTEXT counts, as AutoCAD counts those the words fill only as it lays them out.

public void SetDynamicColumns(double width, double gutter, bool autoHeight)

Parameters

width double

How wide each column is, a finite number above nought.

gutter double

The space between two columns, a finite number of nought or more.

autoHeight bool

Whether the columns are all of one height.

Exceptions

ArgumentOutOfRangeException

Thrown when a width is outside what it takes.

InvalidOperationException

Thrown when the MTEXT is erased, or of a file older than R2007 with no MTEXTs of its later columns linked, which AutoCAD 2021 reads as of no columns.