Method Explode
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
Explode()
Gets the texts the MTEXT breaks into, as AutoCAD's Explode does: one TEXT for each paragraph (\P, a column
break \N taken as one), its formatting and the heights of its codes left out as Text leaves them
out, as an MTEXT is written into a drawing of R12 (see AppendEntity(DxfEntity)): each
in its text style, its height, turn and plane, the lines spaced as LineSpaceDistance says. B-12 and M16
on two lines, 2.5 high, held at the top left at (10, 20), come out as two TEXTs on the baselines 17.5 and 13.33 high.
Where the drawing's FontSearchPath measures its words (ActualWidth), as AutoCAD
2021 explodes it (check F4): a TEXT for each run of letters of one look of each line as the font lays them out, wrapped
at its Width, held at its left where the pen stands at the run, the ink of the line at the left of its
place in the box (or centred on, or ending at, the Location for an MTEXT held at its centre or right),
each its height and width factor, a line under, over or through it written %%U, %%O or %%K:
"A\H2x;B\H0.5x;C\PDEF" of txt.shx 4 high held at the top left at (10, 20) comes out as A at (10, 12), B 8 high at
(14, 12), C at (22, 12) and DEF at (10, 4). A colour within the words is not given to its TEXT. A stack (the
words 1 over 2 in A\S1/2;B) is the TEXT of its numerator, a LINE for its bar or slash, and the TEXT
of its denominator, each as high as the letters of the stack, where the fonts measure the words (see
GeometryHelper.Dxf.DxfStackShape): txt.shx 0.18 high held at the top left at (10, 10) gives A at (10, 9.58), the 1 at (10.21,
9.82), the bar from (10.18, 9.79) to (10.3, 9.79), the 2 at (10.18, 9.58) and B at (10.36, 9.58); a stack with a line
under, over or through it, or in a TrueType font, is left as the TEXT of its words.
public override IReadOnlyList<DxfEntity> Explode()
Returns
- IReadOnlyList<DxfEntity>
The DxfDBText objects, in no file, to be added to a drawing by AppendEntity(DxfEntity).