.netitextmaui

How can i do SetFont on itext7 Table Cell .Maui


i did not that how i will write include of SetFont Method. My code as Below;

 Cell cellx1 = new Cell(i + 1, 1)
.SetMargin(10)
.SetFont(?????)
.SetTextAlignment(iText.Layout.Properties.TextAlignment.CENTER)
.Add(new Paragraph(quoteP.Unitprice.ToString()));
 tableUrunler.AddCell(cellx1);

Solution

  • I Resolved as Below.Thank you.

    .SetFont(iText.Kernel.Font.PdfFontFactory.CreateFont(StandardFonts.TIMES_BOLD))