ITextSharp,在单元格中为List分配字体?

Isr*_*fel 0 itextsharp

有没有办法将字体分配给添加到ITextsharp中的表格单元格的列表.我敢肯定它一定是直截了当但我却想念它.

Dim tblSignature As New PdfPTable(1)
        tblSignature.WidthPercentage = 90.0F

        Dim _baseFont As BaseFont = BaseFont.CreateFont(BaseFont.HELVETICA, BaseFont.WINANSI, BaseFont.NOT_EMBEDDED)

        Dim _bFont As New Font(_baseFont, 4, Font.ITALIC, Color.RED)

        Dim cell As New PdfPCell(New Phrase(TheItem.Value, _bFont))

        TheParagraph.Font = _bFont


        Dim list As New List(list.UNORDERED, 25.0F)
        list.SetListSymbol("[  ]")


        If ListItems.Count > 0 Then
            For Each ListItem In .ListItems
                //I have tried adding as chunk/phrase and applying font but no joy
                //Item not added to cell
                //list.Add(New Chunk(ListItem, _bFont))

                list.Add(ListItem)
            Next

            list.IndentationLeft = 5.0F

            cell.AddElement(list)
        End If

        cell.Colspan = 6
        cell.HorizontalAlignment = 0
        cell.PaddingBottom = 5.0F
        cell.PaddingLeft = 5.0F
        cell.PaddingRight = 5.0F

        '' add to doc
        tblSignature.AddCell(cell)

        TheParagraph.Add(tblSignature)
Run Code Online (Sandbox Code Playgroud)

有谁知道我如何更改这个,以便列表/单元格具有我设置在顶部的特定字体.

干杯

Jay*_*ggs 5

iTextSharp.text.ListItem对象具有iTextSharp.text.Font您可以设置的属性.