Message de Steele, Raymond  date 2014-06-13 02:08 :
I want to determine if my XColumnRowRange has a border around all the outside 
cells.   The first row cells should have a  TopLine. The first column cells 
should have a LeftLine. The last column cells should have a RightLine. The last 
rows cells should have a BottomLine.  What is the best way to check this?


Hi Raymond,

So you have a table in Calc, and you want to have a border around the table.
Your table is a CellRange. This CellRange has a property TableBorder which covers the entire range.

References:
- service c.s.s.table.CellProperties, property TableBorder
- structure c.s.s.table.TableBorder
- Doc <https://wiki.openoffice.org/wiki/Documentation/DevGuide/Spreadsheets/Formatting>

Instead of checking each border, a simpler way is to set each border as you need it, then copy the complete structure to TableBorder.

Regards
  Bernard

---------------------------------------------------------------------
To unsubscribe, e-mail: api-unsubscr...@openoffice.apache.org
For additional commands, e-mail: api-h...@openoffice.apache.org

Reply via email to