Selected Table cells problem - range of cells is not continious

I

Igor Jecmenic

1. I had table of 3 columns and 4 rows.
2. Select cells
row 1 column 3
row 2 columng 4

Word.Selection selection;
bool isSelectionInTable = (bool)selection.get_Information(
Word.WdInformation.wdWithInTable );
if( isSelectionInTable ) {
int numberOfSelectedCells = selection.Cells.Count; // only 1
}
Code returns only one selected cells

Is there any way to get all 2 selected cells?

Thank you,
Igor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top