Table of Contents

Constructor CadMTextEditor

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

CadMTextEditor(string, double, string, bool, char)

Opens the words of an MTEXT for editing.

public CadMTextEditor(string contents, double height, string styleFont = null, bool styleIsShx = false, char defaultAlignment = 'l')

Parameters

contents string

The words with their codes.

height double

The MTEXT's height.

styleFont string

The font of the MTEXT's style: a TrueType family (Arial) or an SHX file (romans); null for none known.

styleIsShx bool

Whether the style's font is an SHX file, whose letters cannot be bold or italic.

defaultAlignment char

How a paragraph with no alignment code is aligned, l, c or r, as the MTEXT's attachment says.

CadMTextEditor(string, double, CadMTextFrame, string, bool, char)

Opens the words of an MTEXT for editing in its box: the width, height and columns the ruler and Column Settings change.

public CadMTextEditor(string contents, double height, CadMTextFrame frame, string styleFont = null, bool styleIsShx = false, char defaultAlignment = 'l')

Parameters

contents string

The words with their codes.

height double

The MTEXT's height.

frame CadMTextFrame

The MTEXT's box as it is (Of(DxfMText)); null for none.

styleFont string

The font of the MTEXT's style: a TrueType family (Arial) or an SHX file (romans); null for none known.

styleIsShx bool

Whether the style's font is an SHX file, whose letters cannot be bold or italic.

defaultAlignment char

How a paragraph with no alignment code is aligned, l, c or r, as the MTEXT's attachment says.

CadMTextEditor(string, double, CadMTextFrame, double, string, bool, char, IReadOnlyList<string>)

Opens the words of an MTEXT in a style of letters of another width for editing in its box: a width in times of the style's ({\W1.2x;ABC}) is read as times that width, 0.96 in a style of 0.8, as AutoCAD 2021 draws it, and written back as that width (\W0.9600;).

public CadMTextEditor(string contents, double height, CadMTextFrame frame, double styleWidth, string styleFont = null, bool styleIsShx = false, char defaultAlignment = 'l', IReadOnlyList<string> fieldShown = null)

Parameters

contents string

The words with their codes.

height double

The MTEXT's height.

frame CadMTextFrame

The MTEXT's box as it is (Of(DxfMText)); null for none.

styleWidth double

The width factor of the MTEXT's style; 1 where it is not above nought.

styleFont string

The font of the MTEXT's style: a TrueType family (Arial) or an SHX file (romans); null for none known.

styleIsShx bool

Whether the style's font is an SHX file, whose letters cannot be bold or italic.

defaultAlignment char

How a paragraph with no alignment code is aligned, l, c or r, as the MTEXT's attachment says.

fieldShown IReadOnlyList<string>

The words each field written among the words as %<\AcVar Date>% came to, in the order of the fields: each is one place, shown as its words and written as its code.