Hello,
I have this table in PPT
and I go to check cells dimensions in this way:
foreach (Row r in table.Rows) { //loop rows in table
foreach (Cell c in r.Cells) { //loop cells in row
String cellText = c.Shape.TextFrame.TextRange.Text;
float cellWidth = c.Shape.Width;
Console.Write(cellText + " " + cellWidth + "\r\n");
}
}
really strange... I have that output:
- A1 92.64583
- A2 154
- A3 282.7708 (sum = 529 +-)
- B1 92.64583
- B2 154
- B3 282.7708 (sum = 529 +-)
- C1 185.2917
- C1 185.2917
- C3 282.7708 (sum = 652 +-)
So for PPT the row 1 and 2 have the same column width, the row 3 (with cell span) has column width bigger!
If you apply this proportion:
652 : 529 = 185 : X
X = 150 +-
652 : 529 = 282 : X
X= 228 +-
Now adding 228 (C3) + 150 (C1) + 150 (C1) = 529 +-