Answer the question
In order to leave comments, you need to log in
How to know that all cells in a table are merged (row by row) C# VS?
Good time of the day! Need help!
There is a table:
How to know that all cells in a table are merged (by rows)?
using Microsoft.Office.Interop.Word;
Does not work!
if (table.Cell(i, iCols).Range.Cells.Count == 1)
{
table.Cell(i, iCols).Range.Bold = 1; // Шрифт жирный
MessageBox.Show("Все ячейки объединены в одну!" + i + " " + iCols);
}
if (table.Rows[i].Cells.Count == 1)
//-------------------------------------------------
{
//MessageBox.Show("Горизонталь конец " + i + " " + iCols);
// Шрифт жирный
table.Rows[i].Range.Bold = 1;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question