PDFsharp & MigraDoc Foundation
https://forum.pdfsharp.net/

Font style Bold,Italic and Underline together
https://forum.pdfsharp.net/viewtopic.php?f=2&t=2089
Page 1 of 1

Author:  shahdat85ict [ Sat Jul 14, 2012 5:37 pm ]
Post subject:  Font style Bold,Italic and Underline together

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

Author:  () => true [ Sun Jul 15, 2012 7:46 pm ]
Post subject:  Re: Font style Bold,Italic and Underline together

Hi!

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

Author:  shahdat85ict [ Sat Jul 21, 2012 7:47 am ]
Post subject:  Re: Font style Bold,Italic and Underline together

() => 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

Author:  shahdat85ict [ Sat Jul 21, 2012 10:41 am ]
Post subject:  Re: Font style Bold,Italic and Underline together

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

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/