Jump to navigation Jump to search
The macro below is executed on the currently selected table. In the macro, we do the following:
- We start by checking that the cursor is indeed inside a table.
- The objective is to replace the current borders (the parameters Is... are defined as True) to obtain a an external perimeter and horizontal double lines. We don't want vertical lines. Therefore we need .IsVerticalLineValid = true and VerticalLine = LibONoLine, a struct defined for applying "empty" to a line. We cannot simply use .IsVerticalLineValid = false since the current table could have vertical lines defined and we want to suppress them. With the parameter false, the existing lines would be left in their current state.
- The desired border width is 0.30 cm.
- The parameter Fuse the adjacent line styles is defined by the property CollapsingBorders of the table.