Hi guys
in my project I use font styles for printing a PDF document and I declare them like this:
smallboldStyle = New Infragistics.Documents.Report.Text.Style(New Infragistics.Documents.Graphics.Font("Arial Narrow", 8, Infragistics.Documents.Graphics.FontStyle.Bold), Infragistics.Documents.Graphics.Brushes.Black)
Now I would like to create a smallbolditalicStyle which has the bold and italic fontsyle combined.
How can I do this? I can not find a way to make it work...
thnx in advance
It's a flagged enum. You just 'or' them together.
Infragistics.Documents.Graphics.FontStyle.Bold Or Infragistics.Documents.Graphics.FontStyle.Italic
Hi Mike
I tried this, but it doesn't work for me, I tried with 'or' and with 'and'.
this is how I declared it
bolditalicStyle = New Infragistics.Documents.Report.Text.Style(New Infragistics.Documents.Graphics.Font("Arial Narrow", 10, Infragistics.Documents.Graphics.FontStyle.Bold Or Infragistics.Documents.Graphics.FontStyle.Italic), Infragistics.Documents.Graphics.Brushes.Black)
I would like it to be bold AND italic.
Sorry , my mistake
it does work!
thnx for the tip Mike !