HI
I have a section with a header which is rich content (HTML) and can be multi lines
I would like to calculate the total height of the header text , in order to know where to place an image just below it.
HOw can I find the total height of the section header.
Thanks.
Below is the code for writing the header
ISectionHeader header = section.AddHeader
IText headerText = header.AddText(0, 10)
headerText.AddRichContent(m_documentTitle);
I think I found it using headerText.Measure().Height
Correct me if Im wrong
Hi,
If that works, then I can't see any reason not to go with it.
But I'm a little confused about why you need to measure anything. If you add text and then add an image, you are saying that the image does not appear under the text automatically? If so, I'd like to see the code that's doing that, because I think you might be going about it the wrong way. You should never have to explicitly measure the height of an object to place another object under it.