Table of Contents

CadMTextFrame

from OpenCAD2D import CadMTextFrame

class CadMTextFrame(System.Object) ยท CadMTextFrame in the .NET reference

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.

Properties and fields

AutoHeight

.NET

@property
def AutoHeight(self) -> bool

Gets whether dynamic columns are all of one height, CadMTextFrame.Height.

ColumnCount

.NET

@property
def ColumnCount(self) -> int

Gets how many static columns, or how many dynamic columns of their own heights have a height; 1 with no columns.

ColumnHeights

.NET

@property
def ColumnHeights(self) -> System.Collections.Generic.IReadOnlyList[float]

Gets the heights of dynamic columns of their own heights, the first column's first; empty for any other.

ColumnType

.NET

@property
def ColumnType(self) -> DxfColumnType

Gets how the words are set in columns.

ColumnWidth

.NET

@property
def ColumnWidth(self) -> float

Gets the width of each column; nought with no columns.

Gutter

.NET

@property
def Gutter(self) -> float

Gets the space between two columns; nought with no columns.

HasColumns

.NET

@property
def HasColumns(self) -> bool

Gets whether the words are in columns.

Height

.NET

@property
def Height(self) -> float

Gets the defined height: the box's, or the columns' of one height; nought for none.

Width

.NET

@property
def Width(self) -> float

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

.NET

def ApplyTo(self, text: DxfMText) -> None

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 DxfMText.SetStaticColumns, dynamic ones by DxfMText.SetDynamicColumns and each column's height by DxfMText.SetColumnHeight.

Equals

.NET

def Equals(self, other: CadMTextFrame) -> bool
def Equals(self, obj: object) -> bool

GetHashCode

.NET

def GetHashCode(self) -> int

Of

.NET

@staticmethod
def Of(text: DxfMText) -> CadMTextFrame

Makes the frame of an MTEXT as it is drawn: its width, defined height and columns.

@staticmethod
def Of(width: float, height: float = ...) -> CadMTextFrame

Makes the frame of an MTEXT with no columns.

WithColumnHeight

.NET

def WithColumnHeight(self, index: int, height: float) -> CadMTextFrame

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

.NET

def WithColumnWidth(self, width: float) -> CadMTextFrame

Gets the frame with columns of another width, the gutter kept; the total of static ones follows.

WithColumns

.NET

def WithColumns(
    self,
    type: DxfColumnType,
    columnWidth: float,
    gutter: float,
    count: int,
    autoHeight: bool,
) -> CadMTextFrame

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

.NET

def WithGutter(self, gutter: float) -> CadMTextFrame

Gets the frame with another gutter; the total of static columns follows.

WithHeight

.NET

def WithHeight(self, height: float) -> CadMTextFrame

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

.NET

def WithWidth(self, width: float) -> CadMTextFrame

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.