locked
PdfTable background color RRS feed

  • Question

  • User1472402676 posted

    Hi All,

    I know how to set cell background color. But I case i have many cell in my table it's take more time to me for set background color. so it's possible set the background color for pdfptable.

    Thank you. 

    Tuesday, April 7, 2015 7:22 AM

All replies

  • User-821857111 posted

    You can set a default color for all cells  like this:

    table.DefaultCell.BackgroundColor = new Color(0, 150, 150);

    where table is your PdfPTable instance.

    Tuesday, April 7, 2015 9:29 AM