Copy link to clipboard
Copied
Hi,
I'm currently working on a script that applies a background color to a column.
With simple table it works fine, but when on the first rown there is two cells merged, and if I select the merged cells and the two columns below, it only colors the first one.
I thought that if I knew if the selected cell is a merged cell, I could easily color the selected column.
Many thanks,
Nicolas
columnSpan is for horizontal merges, rowSpan for vertical, so best check both (http://jongware.mit.edu/idcs5.5js_html/idcs5.5js/pc_Cell.html)
Copy link to clipboard
Copied
If a cell's rowSpan is greater than 1 it's horizontally merged.
if (myCell.rowSpan > 1)
P.
Copy link to clipboard
Copied
columnSpan is for horizontal merges, rowSpan for vertical, so best check both (http://jongware.mit.edu/idcs5.5js_html/idcs5.5js/pc_Cell.html)
Copy link to clipboard
Copied
Wow, thanks to both of you, that's exactly what I needed!
Have a nice day 🙂
Nicolas
Copy link to clipboard
Copied
FYI, the link is broken!
Copy link to clipboard
Copied
Here is an alternate link for the same
https://www.indesignjs.de/extendscriptAPI/indesign-latest/#Cell.html
-Manan