PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sun Jul 07, 2024 2:21 am

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Sat Jul 14, 2012 5:37 pm 
Offline

Joined: Wed Jun 06, 2012 5:48 pm
Posts: 7
Is there any way to set font style like
Code:
XFontStyle.BoldItalicUnderline
or
Code:
 XFontStyle.ItalicUnderline
or
Code:
XFontStyle.BoldUnderline
?

As I see the XFontStyle enum looks like bellow
Code:
 [Flags]
    public enum XFontStyle
    {
        Regular = 0,
        Bold = 1,     
        Italic = 2,     
        BoldItalic = 3,     
        Underline = 4,     
        Strikeout = 8,
    }


How can we have a fontstyle as BoldItalicUnderline together?

Thanks


Top
 Profile  
Reply with quote  
PostPosted: Sun Jul 15, 2012 7:46 pm 
Offline
PDFsharp Expert
User avatar

Joined: Wed Dec 09, 2009 8:59 am
Posts: 343
Hi!

It should work if you combine the values you need with the "or" operator ||.

_________________
Öhmesh Volta ("() => true")
PDFsharp Team Holiday Substitute


Top
 Profile  
Reply with quote  
PostPosted: Sat Jul 21, 2012 7:47 am 
Offline

Joined: Wed Jun 06, 2012 5:48 pm
Posts: 7
() => true wrote:
Hi!

It should work if you combine the values you need with the "or" operator ||.


Sorry, I m not sure you got my point, please have a look on here
Image

Thanks


Top
 Profile  
Reply with quote  
PostPosted: Sat Jul 21, 2012 10:41 am 
Offline

Joined: Wed Jun 06, 2012 5:48 pm
Posts: 7
shahdat85ict wrote:
() => true wrote:
Hi!

It should work if you combine the values you need with the "or" operator ||.


Sorry, I m not sure you got my point, please have a look on here
Image

Thanks


I got my answer from stackoverflow

http://stackoverflow.com/questions/11590496/pdf-sharp-font-style-bold-italic-and-underline-together?answertab=votes#tab-top


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

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 32 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