Hello,
is there any way to configure a font style for a whole presentation table in .Net Core?
I did find the "BuiltInTableStyle" where the "Custom" Enum throws an error - but in my case "None" works. But also this only affects the styling of the table, not it´s cells.
So while I was not able to figure out how to apply a font style to a table, I created a little workaround like this with a "foreach":
IPresentation presentation = Presentation.Create();
presentation.PresentationRenderer = new PresentationRenderer();
ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank);
ITable table = slide.Shapes.AddTable(5, 3, 0, 60, 900, 350);
var cell = table[0, 0];
cell.TextBody.AddParagraph("The first text.");
cell.TextBody.AddParagraph("The second text.");
foreach(var par in cell.TextBody.Paragraphs)
{
par.Font.FontName = "Arial";
par.Font.FontSize = 8;
}
Why is the FontName and FontSize applied in the first Paragraph, but not in the second?
I´m using Syncfusion.Presentation.Net.Core 17.1.0.47 <= This version was sent to me by Jamie Whitfield, because I requested the "GetActualHeight" feature for tables in .net Core presentations.