CadMTextRun
from OpenCAD2D import CadMTextRun
class CadMTextRun(System.Object) · CadMTextRun in the .NET reference
A run of an MTEXT's paragraph: letters of one look, or one code kept as written, a stacked fraction (\S1/2;), a symbol (%%d, \U+2248), shown as its letters and written back as it was.
Constructors
__init__
def __init__(self, text: str, look: CadMTextLook, code: str | None = ...) -> None
Makes a run.
Properties and fields
Code
@property
def Code(self) -> str | None
Gets the code written for the run where it is one; null for letters.
IsField
@property
def IsField(self) -> bool
Gets whether the run is a field, written as its code in markers, %<\AcVar Date>%, and shown as the words it came to.
Look
@property
def Look(self) -> CadMTextLook
Gets the look.
Text
@property
def Text(self) -> str
Gets the letters as shown: ° for %%d, 1/2 for \S1/2;.
Methods
ToString
def ToString(self) -> str