.NET

.NET

Reply
New Member
1854656984
Posts: 2
Registered: ‎07-01-2012
Message 1 of 5 (1,343 Views)
Accepted Solution

How change text width in table cell using autocad .net api C#?

1343 Views, 4 Replies
07-01-2012 02:47 PM

I create Table using Autocad .net api C#.


var table = new Table();

In single text(class DBText), change text width of the property - WidthFactor.

How change text width in table cell using autocad .net api C#?

1010.jpg


Use Formatting in the contents like Mtext.

 

"{\W0.5;Text Width = 0.5}"

Distinguished Mentor
gasty1001
Posts: 582
Registered: ‎04-11-2010
Message 2 of 5 (1,339 Views)

Re: How change text width in table cell using autocad .net api C#?

07-01-2012 03:16 PM in reply to: 1854656984

Hi,

 

Table.Cells(i,j).TextStyleId=Id_Of_The_TextStyle_With_Needed_WidthFactor should work.

 

Gaston Nunez

*Expert Elite*
chiefbraincloud
Posts: 753
Registered: ‎02-13-2008
Message 3 of 5 (1,322 Views)

Re: How change text width in table cell using autocad .net api C#?

07-02-2012 10:14 AM in reply to: gasty1001

Use Formatting in the contents like Mtext.

 

"{\W0.5;Text Width = 0.5}"

Dave O.                                                                  Sig-Logos32.png
New Member
1854656984
Posts: 2
Registered: ‎07-01-2012
Message 4 of 5 (1,302 Views)

Re: How change text width in table cell using autocad .net api C#?

07-03-2012 06:46 AM in reply to: 1854656984

Thanks!!! it works perfectly!!!!

Valued Mentor
KerryBrown
Posts: 277
Registered: ‎11-29-2008
Message 5 of 5 (1,289 Views)

Re: How change text width in table cell using autocad .net api C#?

07-03-2012 05:19 PM in reply to: 1854656984

1854656984 wrote:

Thanks!!! it works perfectly!!!!


 

 

Since you answered your own post ... which solution worked for you ??

 

 

//-------------------------------------------------------

Everything will work just as you expect it to, unless your expectations are incorrect.

class keyThumper<T> : Lazy<T>;      another  Swamper

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.