title: colors and border setting in itextsharp
body: <p>I am trying to set the border and color for my pdf cells.</p>
  
  <pre><code>PdfPCell[] headingcell = new PdfPCell[] {
                  new PdfPCell(new Phrase("abc", font9)),
                  new PdfPCell(new Phrase("abc", font9)),
                  new PdfPCell(new Phrase("abc", font9)),
                  new PdfPCell(new Phrase("abc", font9)),
                  new PdfPCell(new Phrase("abc", font9)),
                  new PdfPCell(new Phrase("abc_abc_abc", font9)),
                  new PdfPCell(new Phrase("abc", font9)),
                  new PdfPCell(new Phrase("abc", font9)),
                  new PdfPCell(new Phrase("abc", font9)),
                  new PdfPCell(new Phrase("abc", font9)),
                  new PdfPCell(new Phrase("abc", font9)),
                  new PdfPCell(new Phrase("abc", font9)),
                  new PdfPCell(new Phrase("abc", font9)),
                  new PdfPCell(new Phrase("abc", font9)),
              };
  
              headingcell[0].BackgroundColor = BaseColor.DARK_GRAY;
              headingcell[1].BackgroundColor = BaseColor.DARK_GRAY;
              headingcell[2].BackgroundColor = BaseColor.DARK_GRAY;
              headingcell[3].BackgroundColor = BaseColor.DARK_GRAY;
              headingcell[4].BackgroundColor = BaseColor.DARK_GRAY;
              headingcell[5].BackgroundColor = BaseColor.DARK_GRAY;
              headingcell[6].BackgroundColor = BaseColor.DARK_GRAY;
              headingcell[7].BackgroundColor = BaseColor.DARK_GRAY;
              headingcell[8].BackgroundColor = BaseColor.DARK_GRAY;
              headingcell[9].BackgroundColor = BaseColor.DARK_GRAY;
              headingcell[10].BackgroundColor = BaseColor.DARK_GRAY;
              headingcell[11].BackgroundColor = BaseColor.DARK_GRAY;
              headingcell[12].BackgroundColor = BaseColor.DARK_GRAY;
              headingcell[13].BackgroundColor = BaseColor.DARK_GRAY;
  
              headingcell[0].BorderWidth = 0;                
              headingcell[1].BorderWidth = 0;
              headingcell[2].BorderWidth = 0;
              headingcell[3].BorderWidth = 0;
              headingcell[4].BorderWidth = 0;
              headingcell[5].BorderWidth = 0;
              headingcell[6].BorderWidth = 0;
              headingcell[7].BorderWidth = 0;
              headingcell[8].BorderWidth = 0;
              headingcell[9].BorderWidth = 0;
              headingcell[10].BorderWidth = 0;
              headingcell[11].BorderWidth = 0;
              headingcell[12].BorderWidth = 0;
              headingcell[13].BorderWidth = 0;
              table.Rows.Add(new PdfPRow(headingcell));
  </code></pre>
  
  <p>I am able to achieve what I want with this coding, but I would like to ask is there a more efficient way to achieve this? Because these codes is so long only for this small thing.</p>