Ok, so I am trying to change the font size on a Text paragraph in a table cell. My code looks like this:
foreach(Row row in table.Rows) { foreach(Cell cell in row.Cells) { foreach(Text text in cell.Paragraphs) { text.TextInfo.FontSize *= 0.8; // I want to scale the font down by 80% foreach(Segment seg in text.Segments) // For good measure I try doing it to every segment too. seg.TextInfo.FontSize *= 0.8; }}}
What am I doing wrong? I’ve tried all sorts of things, and I just cannot get the font size to decrease. IN case it matters I am setting text.FontName = “Arial”; too.
Thank you,
~Jason Walker
}