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

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

Anonymous
Not applicable
4,391 Views
4 Replies
Message 1 of 5

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

Anonymous
Not applicable

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


0 Likes
Accepted solutions (1)
4,392 Views
4 Replies
Replies (4)
Message 2 of 5

hgasty1001
Advisor
Advisor

Hi,

 

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

 

Gaston Nunez

0 Likes
Message 3 of 5

chiefbraincloud
Collaborator
Collaborator
Accepted solution

Use Formatting in the contents like Mtext.

 

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

Dave O.                                                                  Sig-Logos32.png
0 Likes
Message 4 of 5

Anonymous
Not applicable

Thanks!!! it works perfectly!!!!

0 Likes
Message 5 of 5

kerry_w_brown
Advisor
Advisor

@Anonymous wrote:

Thanks!!! it works perfectly!!!!


 

 

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

 

 


// Called Kerry or kdub in my other life.

Everything will work just as you expect it to, unless your expectations are incorrect. ~ kdub
Sometimes the question is more important than the answer. ~ kdub

NZST UTC+12 : class keyThumper<T> : Lazy<T>;      another  Swamper
0 Likes