We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

pdf table cell padding

I wish set different cell padding for each cell in a PDF table.

It's possible?

Best regards.

Paolo Cantini.


1 Reply

GM Geetha M Syncfusion Team August 3, 2012 10:00 AM UTC

Hi Paolo,

Thank you for your interest in Syncfusion products.

You can specify padding for all cells in PdfLightTable or PdfGrid using the following code snippet:

// Using PdfLightTable
pdfLightTable.Style.CellPadding = 4;

// Using PdfGrid
// Padding will be applied for all four sides of cells in PdfGrid.
pdfGrid.Style.CellPadding.All = 0.3f;
 
// Padding will be applied only at the top of all cells in PdfGrid.
pdfGrid.Style.CellPadding.Top = 0.3f;

However, it is not possible to set different padding for each cells. Please let us know if you have any questions.

Regards
Geetha

Loader.
Live Chat Icon For mobile
Up arrow icon