私はpdftableのフォントを変更しようとしています.Javaでこのヒントを持っていますが、それをvb.netに入れるには助けが必要です.
PdfPTable table = new PdfPTable(3);
table.AddCell("Cell 1");
PdfPCell cell = new PdfPCell(new Phrase("Cell 2", new Font(Font.HELVETICA, 8f, Font.NORMAL, Color.YELLOW)));
私はpdftableのフォントを変更しようとしています.Javaでこのヒントを持っていますが、それをvb.netに入れるには助けが必要です.
PdfPTable table = new PdfPTable(3);
table.AddCell("Cell 1");
PdfPCell cell = new PdfPCell(new Phrase("Cell 2", new Font(Font.HELVETICA, 8f, Font.NORMAL, Color.YELLOW)));
Imports iTextSharp.text
Imports iTextSharp.text.pdf
Module Module1
Sub Main()
Dim table As New PdfPTable(3)
table.AddCell("Cell 1")
Dim f As New Font(Font.HELVETICA, 8.0F, Font.NORMAL, Color.YELLOW)
Dim ph As New Phrase("Cell 2", f)
Dim cell As New PdfPCell(ph)
End Sub
End Module