S
Siv
Hi,
I want to print using the Graphics.Drawstring method but instead of using
either bold or underline I want to combine both so the printed text is bold
and underline??
The way I send the drawstring command is as follows:
Somewhere in my declarations I have:
Private ra As System.Drawing.StringFormat
Private fb As New System.Drawing.Font("Courier New", 10,
FontStyle.Bold, GraphicsUnit.Point)
Private fu As New System.Drawing.Font("Courier New", 10,
FontStyle.Underline, GraphicsUnit.Point)
and in the printing code I have:
ra = New StringFormat
ra.Alignment = StringAlignment.Far 'Right alignment in a left to
right environment
e.Graphics.DrawString("Some text right aligned with underlining",
fu, Brushes.Black, x, y, ra)
If I want to do the same but also simultaneously have the text underlined
and emboldened, how do I achieve that??
Any examples greatly appreciated.
Siv
I want to print using the Graphics.Drawstring method but instead of using
either bold or underline I want to combine both so the printed text is bold
and underline??
The way I send the drawstring command is as follows:
Somewhere in my declarations I have:
Private ra As System.Drawing.StringFormat
Private fb As New System.Drawing.Font("Courier New", 10,
FontStyle.Bold, GraphicsUnit.Point)
Private fu As New System.Drawing.Font("Courier New", 10,
FontStyle.Underline, GraphicsUnit.Point)
and in the printing code I have:
ra = New StringFormat
ra.Alignment = StringAlignment.Far 'Right alignment in a left to
right environment
e.Graphics.DrawString("Some text right aligned with underlining",
fu, Brushes.Black, x, y, ra)
If I want to do the same but also simultaneously have the text underlined
and emboldened, how do I achieve that??
Any examples greatly appreciated.
Siv