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)
누구든지 알고 있습니다. 목록/셀에 맨 위에 설정 한 특정 글꼴이 있도록 어떻게 변경합니까?
건배
는
피 묻은 도대체, 나는 ListItem을 사용하는 대신 문자열을 직접 목록에 적용하고 있습니다. – Israfel