Is it possible to make a
TextFrame increase its Height to contain its content?
for example the following code snippet creates a
TextFrame with a border but the borders only 'contain' lines 1 to 6. Lines 7 to 9 fall outside the borders.
Code:
private void AddLeftBox(Section section)
{
var frame = section.AddTextFrame();
frame.Width = new Unit(80.0, UnitType.Millimeter);
frame.LineFormat.Width = Unit.FromPoint(0.5);
for (int i = 1; i < 10; i++)
frame.AddParagraph("Line " + i);
}
Failing an automatic way of doing this is there a way to measure the contents of the
TextFrame after they have been added and then retrospectively set the
TextFrame.Height property[/code]