PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sat Apr 27, 2024 9:09 am

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Strikeout/Line-out Text
PostPosted: Mon Jan 11, 2010 5:43 pm 
Offline

Joined: Mon Jan 11, 2010 5:35 pm
Posts: 9
Is it possible to Strikeout/line-out text using MigraDoc?

I have tried a couple of different ways, but no luck.

If their is a solution to striking-out text, please help.


Top
 Profile  
Reply with quote  
PostPosted: Mon Jan 11, 2010 8:14 pm 
Offline

Joined: Mon Jan 04, 2010 2:44 pm
Posts: 23
I would expect XFontOptions.Strikeout to do what you expected. Does that not work, and if so, what happens when you try it?


Top
 Profile  
Reply with quote  
PostPosted: Tue Jan 12, 2010 7:41 pm 
Offline

Joined: Mon Jan 11, 2010 5:35 pm
Posts: 9
"XFontOtions is not a member of the MigraDoc.DocumentObjectModel"

I could be wrong, but I thought XFont only worked with PDFsharp objects?

I am trying to strikeout a MigraDoc Paragraph.

This is the only way I could figure to do it, but its not as nice as it would be with MigraDoc because I have to position each line:

Code:
Dim gfx As XGraphics = XGraphics.FromPdfPage(page)
Dim font2 As New XFont("Tahoma", 11, XFontStyle.Strikeout)
gfx.DrawString("text to strikeout", font2, XBrushes.Black, New XRect(65, 250, 1, 1), XStringFormats.TopLeft)


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 393 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