Table of Contents

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__

.NET

def __init__(self, text: str, look: CadMTextLook, code: str | None = ...) -> None

Makes a run.

Properties and fields

Code

.NET

@property
def Code(self) -> str | None

Gets the code written for the run where it is one; null for letters.

IsField

.NET

@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

.NET

@property
def Look(self) -> CadMTextLook

Gets the look.

Text

.NET

@property
def Text(self) -> str

Gets the letters as shown: ° for %%d, 1/2 for \S1/2;.

Methods

ToString

.NET

def ToString(self) -> str