Class CadMTextFrame
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
The box of an MTEXT being edited, as the MTEXT editor's ruler and Column Settings change it: its width, its defined height and its columns. Each change is a new frame, so that the editor's undo keeps the one before.
public sealed class CadMTextFrame : IEquatable<CadMTextFrame>
- Inheritance
-
CadMTextFrame
- Implements
- Inherited Members
Remarks
An MTEXT 55 wide of no columns is a frame of Width 55. In two static columns 40 wide with a gutter of 12.5 its Width is the total, 92.5, as AutoCAD 2021 gives it; in dynamic columns it is a column's, the count following the words.
Properties
- AutoHeight
Gets whether dynamic columns are all of one height, Height.
- ColumnCount
Gets how many static columns, or how many dynamic columns of their own heights have a height; 1 with no columns.
- ColumnHeights
Gets the heights of dynamic columns of their own heights, the first column's first; empty for any other.
- ColumnType
Gets how the words are set in columns.
- ColumnWidth
Gets the width of each column; nought with no columns.
- Gutter
Gets the space between two columns; nought with no columns.
- HasColumns
Gets whether the words are in columns.
- Height
Gets the defined height: the box's, or the columns' of one height; nought for none.
- Width
Gets the width of the box: of the MTEXT with no columns, of all the columns with their gutters with static ones, of a column with dynamic ones; nought for none.
Methods
- ApplyTo(DxfMText)
Gives an MTEXT this frame's width, defined height and columns, as AutoCAD's own calls set them: no columns taken out, static ones by SetStaticColumns(double, double, int), dynamic ones by SetDynamicColumns(double, double, bool) and each column's height by SetColumnHeight(int, double).
- Of(DxfMText)
Makes the frame of an MTEXT as it is drawn: its width, defined height and columns.
- Of(double, double)
Makes the frame of an MTEXT with no columns.
- WithColumnHeight(int, double)
Gets the frame with one dynamic column of its own height made another height, as its grip drags it; columns up to it that have none are given the defined height.
- WithColumnWidth(double)
Gets the frame with columns of another width, the gutter kept; the total of static ones follows.
- 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.
- WithGutter(double)
Gets the frame with another gutter; the total of static columns follows.
- WithHeight(double)
Gets the frame with another defined height: the box's, or that of columns of one height; with dynamic columns of their own heights, every column's.
- WithWidth(double)
Gets the frame with another width: the MTEXT's, the total of static columns (the gutters kept, the columns sharing the rest), or a dynamic column's.