|
PDFsharp - moved to http://forum.pdfsharp.net/ Please visit the new PDFsharp forum at http://forum.pdfsharp.net/
|
Important Notice:
We regret to inform you that our free phpBB forum hosting service will be discontinued by the end of June 30, 2024.
If you wish to migrate to our paid hosting service, please contact billing@hostonnet.com.
View previous topic :: View next topic |
Author |
Message |
gdi
Joined: 11 Mar 2008 Posts: 2
|
Posted: Tue Mar 11, 2008 11:16 am Post subject: MigraDoc: Formatting a single word within a pargraph |
|
|
Is it possible to format a single word within a paragraph, for example to make one word bold oder underlined? |
|
Back to top |
|
|
Thomas Hoevel
Joined: 16 Oct 2006 Posts: 387 Location: Cologne, Germany
|
Posted: Tue Mar 11, 2008 1:36 pm Post subject: |
|
|
Yes.
Call the AddFormattedText method of the paragraph object.
Here's a code fragment:
Code: |
paragraph = section.Footers.EvenPage.AddParagraph();
paragraph.AddFormattedText("I'm bold.", TextFormat.Bold);
paragraph.AddFormattedText("I'm not bold.", TextFormat.NotBold);
FormattedText ft =
paragraph.AddFormattedText("I'm bold.", TextFormat.Bold);
ft.Font.Size = 6;
|
_________________ Regards
Thomas Hoevel
PDFsharp Team |
|
Back to top |
|
|
gdi
Joined: 11 Mar 2008 Posts: 2
|
Posted: Tue Mar 11, 2008 2:00 pm Post subject: |
|
|
Thanks a lot. |
|
Back to top |
|
|
|
|
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 vote in polls in this forum
|
|