Method WithColumns
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
WithColumns(DxfColumnType, double, double, int, bool)
Gets the frame in other columns, as Column Settings sets them: none (the width the total the columns took), static of a count, or dynamic of one height or of their own, each then given the defined height to start with.
public CadMTextFrame WithColumns(DxfColumnType type, double columnWidth, double gutter, int count, bool autoHeight)
Parameters
typeDxfColumnTypeThe columns.
columnWidthdoubleThe width of a column, above nought; with none, the MTEXT's width.
gutterdoubleThe gutter, nought or more.
countintHow many static columns, 1 to 100; the count of dynamic ones of their own heights.
autoHeightboolWhether dynamic columns are all of one height.
Returns
- CadMTextFrame
The frame.
Exceptions
- ArgumentOutOfRangeException
Thrown when a size or the count is outside what it takes.
- InvalidOperationException
Thrown when the frame has no columns and none are asked for but a width is.