basically if I have a table and want to assign my own fonts to be used for each row from what I understand i need to iterate through each text element and change it:
foreach (Row r in tableParticipantDetails.Rows) { foreach (Cell c in r.Cells) { Paragraphs p = c.Paragraphs; foreach(Text t in p) { t.TextInfo.FontName = “Arial Narrow”; t.TextInfo.FontSize = 8; } } } … … pdf.save(…);
Looks very unefiicient, is there a way to change default fonts on a table level?
There is a [Table.DefaultCellTextInfo](http://www.aspose.com/Products/Aspose.Pdf/Api/Aspose.Pdf.Table.DefaultCellTextInfo.html) property in API to set default text info in the table. But in XML it is not supported. I will add support for it in XML soon.