Table of Contents

Property MTextAttributeDefinition

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

MTextAttributeDefinition

Gets or sets the MTEXT the definition is made of where it is of several lines, as AutoCAD's MTextAttributeDefinition: as MTextAttribute gets and sets one, its type (71) 4, as ezdxf writes the definition of an attribute of several lines, but its default value (group 1) the MTEXT's contents, its lines apart by \P, as AutoCAD 2021 writes the definition of three lines it makes: LINE ONE\PLINE TWO\PLINE THREE, where ezdxf writes the first line. TextString reads the words of its lines joined by spaces, LINE ONE LINE TWO LINE THREE, as AutoCAD 2021 reads them, and an ATTRIB filled from the definition is given those.

public DxfMText MTextAttributeDefinition { get; set; }

Property Value

DxfMText

Get, a new MTEXT in no file with the definition's look; null for a definition of one line. Set, embedded and the text made to agree; the MTEXT it is made of, given back, changes nothing, and so does null given to a definition of one line.

Exceptions

ArgumentNullException

Thrown when null is set on a definition of several lines.

ArgumentException

Thrown when the MTEXT's text style is not in the file's text style table.

InvalidOperationException

Thrown when the definition is erased, or set in a file older than R2018 (AC1032).