Hi,
I am able to set column width. How to set row height in TableEx as the property is read-only?
What is the use of Minimal Height?
Hi,
I am able to set column width. How to set row height in TableEx as the property is read-only?
What is the use of Minimal Height?
Hi Htanmo,
PresentationEx pres = new PresentationEx(“D:\Aspose Data\Sample.pptx”);//Accessing a slide using its slide positionSlideEx slide = pres.Slides[0];//Setting table object to nullTableEx table = null;//Iterating through all shapes unless the desired table is foundfor (int i = 0; i < slide.Shapes.Count; i++){if (slide.Shapes[i] is TableEx){table = (TableEx)slide.Shapes[i];foreach (RowEx row in table.Rows){//Setting row heighhtrow.MinimalHeight += 20;foreach (CellEx cells in row){//Setting the data in text frameTextFrameEx tf = cells.TextFrame;tf.Paragraphs[0].Portions[0].Text = “This is”;//test data This is test data This is test data This is test data This is test data This is test data This is test data This is test data ";}}}}pres.Write(“D:\Aspose Data\modified.pptx”);
Is row height kept increasing as u have used increment of 20 @ row.MinimalHeight+=20?
But in the attachment all rows are with same height.
Say, I have used
table.SetRowHeight(i, 12) in PPT
What shall be used in PPTX?
Hi Htanmo,
Thanks Mudassir.
But I can create a new table by passing width and height as parameters.
I used
int tableIndex = slide.Shapes.AddTable(xPosition / 8, yPosition / 8, columnWidths, rowWidths);
TableEx table = (TableEx)slide.Shapes[tableIndex];
Is the usage correct?
So initially I am creating table with some row height and col width. Then I would like to change.
Hi Htanmo,