Fonts of tables


Hi Alexey,

when you copy tables, can you set the fonts of original table to the copy?

And can you check Tags.Contains(…)?

slide.Tags.Add(“test”, “valueOfTest”);
if (slide.Tags.Contains(“test”))
// unreachable code



Dear Carsten,

How you copy tables? You mean add columns and rows?

MS PowerPoint store tags in upper case so if you try
if (slide.Tags.Contains(“TEST”))
it will work. I’ve made it case insensitive so it will be available
in the next hot fix today or tomorrow.


Hi Alexey,

wow very fast answer Smile

I create a table in a template and change/add some rows.
In both cases the font is a default font.

Slide slide = pres.GetSlideByPosition(3);

// seach table in template
Table ppTable = null;
for (int i=0; i<slide.Shapes.Count; i++)
if (slide.Shapes[ i ] is Table)
ppTable = (Table)slide.Shapes[ i ];

// change existing rows.
for (int i=0; i<ppTable.RowsNumber; i++)
ppTable.GetCell(0, i).TextFrame.Paragraphs[0].Portions[0].Text = “test”;

// add new rows
for (int i=0; i<5; i++)
ppTable.GetCell(0, i).TextFrame.Paragraphs[0].Portions[0].Text = i.ToString();


I will check it and probably fix.