ARTICLE AD BOX
Using PdfTable from SlapKit.PDF. How do I change a specific cell's background color?
I setup my table as shown below. There is no problem there. This causes them to have a single uniform color. Individual cells can be colored, right?
CellProperties cellTableProperties = new CellProperties { Borders = new CellBorders(new Border(1)), Padding = new CellPadding(5) }; PdfTableLayout layout = new PdfTableLayout(new AutoHeightRowLayout(5), new FixedWidthColumnLayout(20, 25)); PdfTable table = new(layout, cellTableProperties, new TextProperties(AddStandardFont(pdfBuilder)) { FontSize = 6, LineHeight = 7, TextColor = new RGBColor(0,0,0) });