Table Cells Selection

General TRichView support forum. Please post your questions here
Post Reply
Aeperd
Posts: 20
Joined: Thu Dec 26, 2024 1:30 pm

Table Cells Selection

Post 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.
Sergey Tkachenko
Site Admin
Posts: 17805
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Table Cells Selection

Post 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.
Post Reply