Mtext rigth&left giustified

Seems to be the "AttachmentPoint" property.

if mtobj is a variable pointing to an IAcadMText object:
(vlax-put mtobj "AttachmentPoint" 1)

1 is acAttachmentPointTopLeft
2 is acAttachmentPointTopCenter
3 is acAttachmentPointTopRight
4 is acAttachmentPointMiddleLeft
5 is acAttachmentPointMiddleCenter
6 is acAttachmentPointMiddleRight
7 is acAttachmentPointBottomLeft
8 is acAttachmentPointBottomCenter
9 is acAttachmentPointBottomRight

jb
 
James, thanks for answer but

I need to format a Mtext rigth AND left justified
like "justified" in Ms Word:

ABCDEF ABCDEFGHILMNOPQRSTUVZ
ABEF ABCD EFGH ILMN QRSTUVZ
AB ABCD EF GH IL MNOPST UVZ
ABCDEF ABCDEFG MNOPQRSTUVZ
ABCDEF BCI LMNR STUVZ

(Sorry for giustified > justified!)

Ciao.

Marco
 
Marco,
It looks like the MTEXT entity has only (1) justification bit. / attachmentpoint as James stated. You might consider generating a routine to replace the Mtext (line at a time), with Fitted Text ?

Bob
 
Thanks Terry, great tools.

Thanks to all.

Terry W. Dotson said:
Marc'Antonio Alessi said:
I need to format a Mtext rigth AND left justified
like "justified" in Ms Word:
ABCDEF ABCDEFGHILMNOPQRSTUVZ
ABEF ABCD EFGH ILMN QRSTUVZ

No way using Mtext objects.

ToolPac 7.0 from http://www.dotsoft.com has the ability to create a full justified text object [http://www.dotsoft.com/immages/tptxtful.gif]. It provides a simple multiline editor for the creation and changing of these objects.

Terry
 

Latest threads

Back
Top