.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Text Justification

3 REPLIES 3
Reply
Message 1 of 4
BrentBurgess1980
920 Views, 3 Replies

Text Justification

I am setting my DBText's justification, and I cannot seem to set it to Top Centre (defaults back to BaseAlign). All of the others seem to work. I have attached an image.

 

Am I missing something obvious?

 

Thanks

3 REPLIES 3
Message 2 of 4

You might try the AdjustAlignment method of the DBText object after you've set its new justification and Alignment point.

 

Something like this?

Me.Text.AdjustAlignment.(Autodesk.AutoCAD.DatabaseServices.HostApplicationServices.WorkingDatabase);

Message 3 of 4

at one time I had a problem with a certain justification, (I don't recall if it was TopCenter or not) I found that the only thing that seemed to work was to set the HorizontalMode and VerticalMode properties, instead of Justify.

Dave O.                                                                  Sig-Logos32.png
Message 4 of 4
tyronebk
in reply to: chiefbraincloud

Thanks ChiefBrainCloud. 

Also, the TopCenter attachment point was only failing for me if the DBText object was annotative.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost