Multiline Text Home

Multiline text consists of any number of text lines or paragraphs that fit within a width you specify. It can extend vertically to an indefinite length. Regardless of the number of lines, each set of paragraphs created in a single editing session forms a single object, which you can move, rotate, erase, copy, mirror, or scale. You can apply fonts, color, and text height changes to individual characters, words, or phrases within a paragraph.
New multiline text entities are created with the current Text style.

To add multiline text into a drawing use following functions:

Function Meaning
lcBlockAddMText Adds a multiline text

A multiline text has properties and functions derived from base class and the following specific properties:

Property Type Access Meaning
LC_PROP_ENT_...    Base class properties
LC_PROP_MTEXT_STYLE handle
string
RW Handle to Text style
Name of Text style
LC_PROP_MTEXT_STR string RW Text content (See formatting codes)
LC_PROP_MTEXT_LEN int R Number of characters in the text string
LC_PROP_MTEXT_ALIGN int RW Alignment type
LC_PROP_MTEXT_X float RW Insertion point X
LC_PROP_MTEXT_Y float RW Insertion point Y
LC_PROP_MTEXT_H float RW Height
LC_PROP_MTEXT_WSCALE float RW Width factor (horisontal scale)
LC_PROP_MTEXT_ANGLE float RW Rotation angle
LC_PROP_MTEXT_OBLIQUE float RW Oblique angle
LC_PROP_MTEXT_WRAPWIDTH float RW Max width of a text bounding rectangle
LC_PROP_MTEXT_LINESPACE float RW Relative distance between text lines (0.25 - 4.0)
LC_PROP_MTEXT_CHARSPACE float RW Relative distance between characters (0.0 - 3.0)
LC_PROP_MTEXT_MIRROR bool RW "Mirrored text" flag
LC_PROP_MTEXT_WRECT float R Actual width of bounding rectangle
LC_PROP_MTEXT_HRECT float R Actual height of bounding rectangle

See also

   Text,   Arc text,   Retrieve objects