문제

I see this sample: http://www.aspose.com/docs/display/slidesnet/Creating+a+Table+from+Scratch ...and when I try to use it, I see that the library has changed (I guess) and it needs me to do sth like that:

int lIndex = pSld.Shapes.AddTable(pUppLeftPoint.X, pUppLeftPoint.Y, pColumnWidths, pRowWidths);
TableEx lTable = (TableEx)pSld.Shapes[lIndex];

(I can only cast to TableEx and not to Table)

But I cannot find how to get the cell's TextFrame. The site says :

TextFrame tf = table.GetCell(0, 0).TextFrame;

But I have nothing like this...

Am I missing sth?

Any ideas?

EDIT :

I found out that my code is for PPTX and the site's code for PPT:

http://www.aspose.com/community/forums/thread/453613/facing-performance-issue-due-to-addtable-method-of-pptx.aspx

But, again, how do you get the cell's contents in PPTX?

도움이 되었습니까?

해결책

Ha! I got it! There's an indexer:

lTable[i,j]
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top