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
contentsstringThe words with their codes.
heightdoubleThe MTEXT's height.
styleFontstringThe font of the MTEXT's style: a TrueType family (Arial) or an SHX file (romans); null for none known.
styleIsShxboolWhether the style's font is an SHX file, whose letters cannot be bold or italic.
defaultAlignmentcharHow 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
contentsstringThe words with their codes.
heightdoubleThe MTEXT's height.
frameCadMTextFrameThe MTEXT's box as it is (Of(DxfMText)); null for none.
styleFontstringThe font of the MTEXT's style: a TrueType family (Arial) or an SHX file (romans); null for none known.
styleIsShxboolWhether the style's font is an SHX file, whose letters cannot be bold or italic.
defaultAlignmentcharHow 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
contentsstringThe words with their codes.
heightdoubleThe MTEXT's height.
frameCadMTextFrameThe MTEXT's box as it is (Of(DxfMText)); null for none.
styleWidthdoubleThe width factor of the MTEXT's style; 1 where it is not above nought.
styleFontstringThe font of the MTEXT's style: a TrueType family (Arial) or an SHX file (romans); null for none known.
styleIsShxboolWhether the style's font is an SHX file, whose letters cannot be bold or italic.
defaultAlignmentcharHow a paragraph with no alignment code is aligned, l, c or r, as the MTEXT's attachment says.
fieldShownIReadOnlyList<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.