Pdf sharp font style Bold,Italic and Underline together

Shahdat picture Shahdat · Jul 21, 2012 · Viewed 6.9k times · Source

Have any way set font style ItalicUnderline or BoldItalicUnderline? enter image description here

Thanks

Answer

Henk Holterman picture Henk Holterman · Jul 21, 2012

XFontStyle is an enum type. You can use bitwise logic to combine values.

const XFontStyle ItalicUnderline = XFontStyle.Italic | XFontStyle.Underline ;

const XFontStyle BoldItalicUnderline = XFontStyle.Bold | XFontStyle.Italic | XFontStyle.Underline ;