Page 1 of 1

How to use the "Fit content" of field by coding?

Posted: Thu May 08, 2008 7:36 am
by alex298
Hi,

I noticed that there is a "Fit content" button for field's content under the Size and Position Property window. This is really useful. I wish to use this feature in my coding. However there is no any information related with "Fit content" in the documention.

How can I use the "Fit content" by coding?

Thanks and best regards

Posted: Thu May 08, 2008 8:17 am
by alex298
Hi,

I know how to set a "Fit Height" of a field:

Code: Select all

set the height of field "test" to the textHeightSum of field "test"
However I have no any idea how to set a "Fit Width"?

Thanks and best regards

Posted: Thu May 08, 2008 8:27 am
by Mark Smith
Alex, have a look at the 'formattedHeight' and 'formattedWidth' properties.

Best,

Mark