.NET

Reply
Member
darpz
Posts: 4
Registered: ‎02-26-2012
Message 1 of 2 (176 Views)

text in a rectangle

176 Views, 1 Replies
04-17-2012 02:47 AM

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

 

*Expert Elite*
chiefbraincloud
Posts: 752
Registered: ‎02-13-2008
Message 2 of 2 (152 Views)

Re: text in a rectangle

04-17-2012 10:39 AM 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

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community