Hello,
I’m converting a bit of code from Aspose.Slides to Aspose.Slides.Pptx (version 4.4.0.0). Basically I’m trying to iterate through each cell in a table, but I can seem to find the way to access each cell.
In the version I’m coming from, there used to be a method called
table.GetCell(col, row)
It doesn’t look like that method exists anymore and I don’t see an alternative. How can I get to the CellEx?
Here’s a code snippet:
if (shape is TableEx)
{
TableEx table = (TableEx)shape;
// Spin through each cell to see if it has text
for (int rowIndex = 0; rowIndex < table.Rows.Count; rowIndex++)
{
for (int colIndex = 0; colIndex < table.Columns.Count; colIndex++)
{
Aspose.Slides.Pptx.CellEx cell = table.GetCell(rowIndex, colIndex); // <- This doesn’t work anymore
// do something with the cell
}
}
}