PDFsharp & MigraDoc Foundation https://forum.pdfsharp.net/ |
|
Different formats in same cell https://forum.pdfsharp.net/viewtopic.php?f=2&t=1810 |
Page 1 of 1 |
Author: | alimnios72 [ Fri Oct 07, 2011 10:52 pm ] |
Post subject: | Different formats in same cell |
Hi, I'm developing a C# app using migradoc and I want to have pdf documents with two columns. I've read in other threads that this is just possible using two column tables, so my question is how do I add different formarts to the text in the same cell? I need spaces between paragraphs which i'm adding with scape sequence \n, but what about putting titles in bold or colored text? Thanks in advance |
Author: | () => true [ Sat Oct 08, 2011 10:26 pm ] |
Post subject: | Re: Different formats in same cell |
Hi! Use AddFormattedText inside cells just as you would use it outside cells. |
Author: | alimnios72 [ Wed Oct 12, 2011 10:35 pm ] |
Post subject: | Re: Different formats in same cell |
Thanks Öhmesh but how do I achieve that? There isn't AddFormattedText method in row.Cells[index] object, just AddParagraph method |
Author: | Thomas Hoevel [ Thu Oct 13, 2011 7:38 am ] |
Post subject: | Re: Different formats in same cell |
alimnios72 wrote: There isn't AddFormattedText method in row.Cells[index] object, just AddParagraph method And there is AddFormattedText in the Paragraph class.Code: Paragraph paragraph = row.Cells[index].AddParagraph(); FormattedText ft = paragraph.AddFormattedText("Foo", TextFormat.Bold); ft.Font.Size = 6; You can omit "FormattedText ft = " if you don't need it for special settings. |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |