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

text in a rectangle

1 REPLY 1
Reply
Message 1 of 2
darpz
372 Views, 1 Reply

text in a rectangle

Hi all,

i'm writing an overrule that write some text into a region, but then the text is too long it edged out.

Is there a way to keep the text into the rectangle, with multiline or setting the boundaries or something else?

 

Many Thanks.d

 

Tags (2)
1 REPLY 1
Message 2 of 2
chiefbraincloud
in reply to: darpz

The Justifications with "FIT" at the end (BottomFit, TopFit, etc...) will cause the text to remain a fixed overall width.

 

That can make the text look really funny, or be nearly unreadable, if the string is too short or too long, so may want to include some kind of check in your code and only use Fit if your test says the string is a little too long.

 

You can also use MText, which is multiline, but it will only break the lines at spaces or carriage returns.

Dave O.                                                                  Sig-Logos32.png

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