PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Thu Mar 28, 2024 1:26 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Wed May 21, 2014 3:40 am 
Offline

Joined: Fri May 16, 2014 7:51 am
Posts: 1
Hi

I have a Migradoc document with the a section that has some paragraphs and then a textframe which also contains paragraphs.

The text frame has a gray background color.

The paragraphs above the text frame may be variable.

Is there anyway to have the text frame fill the rest of the page regardless of the lenght of its preceding content?

Code:
Document document = new Document();
Section section = document.AddSection();
section.AddParagraph("Paragraph1");
section.AddParagraph("Paragraph2");
section.AddParagraph("Paragraph3");
...
TextFrame textFrame = section.AddTextFrame();
textFrame.FillFormat.Color = Colors.WhiteSmoke;
textFrame.Height = (Rest of the remaining vertical space of the page)
textFrame.AddParagraph("Paragraph in text frame");


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 158 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group