Page 1 of 1

Table Cells Selection

Posted: Sat Jan 04, 2025 5:49 am
by Aeperd
How may i able to know if 2 cells are selected in a table? Id like to have a merge cells features but i wanna check first if there are 2 or more cells being selected.

Re: Table Cells Selection

Posted: Sat Jan 04, 2025 10:49 am
by Sergey Tkachenko
For this purpose, I recommend using table.CanMergeSelectedCells method.
It checks not only if two or more cells are selected, but also if the selection has a rectangular shape.

As for checking selected cells, use table.IsCellSelected.