View previous topic :: View next topic |
Author |
Message |
deus777
Joined: 14 Apr 2007 Posts: 4
|
Posted: Sat Apr 14, 2007 1:04 am Post subject: MigraDoc Table column autosize |
|
|
I am trying to use MigraDoc to create a table. I think I have it figured out in general, but one of the columns causes the content in it to wrap. I did not specify any widths for the table or the columns. Is there a way to get the column to automatically size itself to its content (like HTML tables)? |
|
Back to top |
|
|
deus777
Joined: 14 Apr 2007 Posts: 4
|
Posted: Tue Apr 17, 2007 12:37 am Post subject: |
|
|
Alternatively, if there is no simple way to auto-size columns, is there an easy way to get how wide a piece of text will be when rendered so I could figure out from the content how wide to make the columns? |
|
Back to top |
|
|
Stefan Lange
Joined: 12 Oct 2006 Posts: 47 Location: Cologne, Germany
|
Posted: Wed Apr 18, 2007 10:13 pm Post subject: |
|
|
MigraDoc cannot auto-size colums. You can use XGraphics.MeasureString to calculate the text width and set the column width with this value. |
|
Back to top |
|
|
|