C# Word table: How to remove the border between two vertical cells RRS feed

  • Question

  • The C# code creates a table in a word file. 

    How can the border between two cells, assuming a condition is met, e.g. x==5?

    So in most cases the border will remain, but sometimes removed?

    The code that creates the lines of the table (one line at a time):


    In case the condition is met, the border of this cell with the cell above it (or below it) needs not to be displayed.

    • Edited by YigalB Sunday, April 7, 2019 5:35 PM
    Sunday, April 7, 2019 4:39 PM