Table Cell Borders

Hello, I am working with creating tables in a Presentation. Depending on certain values, some of the cell borders need to be cleared. However, when trying to set the borders for the cells, my options are table.Row[].Cells[].CellBorders.BorderTop (Left, Right, Bottom). But when trying to assign a style, the only options are Single, ThickBetweenThin, ThickThin, ThinThick, ThinThin. There is no option for None or Clear.

How do I clear a border?


2 Replies

LB Lokesh Baskar Syncfusion Team April 1, 2022 11:54 AM UTC

Hi Edward,


From the given details, we have found that your requirement is to remove cell border for a specified cell of table in a PowerPoint presentation document. You can achieve this requirement by setting FillType as None for the required cell border using Essential Presentation. We have prepared the sample application to achieve your requirement.


In the sample, we have done the following things.
  1.Create the PowerPoint document with slide.
  2.Adds table to that slide with three rows and three columns.
  3. Gets specified cell from the table.
  4. Sets fill type as none for cell borders.
  5. Saves and close the document.


Regards,
Lokesh B


Attachment: CellBorder_d0bcf350.zip


EW Edward Williams April 1, 2022 02:00 PM UTC

Thanks! That's what I was looking for.


Loader.
Up arrow icon