We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Having a bit of trouble accessing a CellEx within a RowEx object


I’m converting a bit of code from Aspose.Slides to Aspose.Slides.Pptx (version 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

Nevermind… it wasn’t obvious to me, but I see now that I can just use this to access the CellEx:

table[rowIndex, colIndex]

Hello Dear,

That's nice that you have been able to resolve the issue on you end. Please share, if I may help you any further.

Thanks and Regards,