Table of Contents

Property TextString

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

TextString

Gets or sets the words of the text (group 1), as AutoCAD's TextString: as the file writes them, its special characters such as %%d kept, but a letter written as its escape, \U+00E9, read as the letter, and a caret and the character after it as AutoCAD reads them, a^Ib a, a tab and b, a^ b a^b, a^@b ending at a; empty where the record gives none. Those of an ATTRIB or ATTDEF of several lines are the words of the lines of its MTEXT joined by spaces, as AutoCAD 2021 reads both whatever their group 1 holds: the definition whose MTEXT reads LINE ONE\PLINE TWO\PLINE THREE gives LINE ONE LINE TWO LINE THREE.

public string TextString { get; set; }

Property Value

string

Set, one line of words; a letter the file's code page lacks is written as its escape, a caret as ^ and a space and a tab as ^I, as AutoCAD writes them, so that m^2 reads back as m^2. Set on an attribute of several lines, the words of its MTEXT, which keeps its place and look, its backslashes and braces written as the codes \, { and }, its group 1 made to agree as MTextAttribute and MTextAttributeDefinition make it.

Exceptions

ArgumentNullException

Thrown when the words set are null.

ArgumentException

Thrown when the words set have a line break in them.

InvalidOperationException

Thrown when the text is erased.