Font size

not sure what I am doing wrong but the font size isn't changing.

color and font type and italics and underline seem ok but not the size. (I removed it from here)

it stays the same real small font, 8 maybe.

here is the code...

IAutoShape generalInfo = slide.Shapes.AddAutoShape(ShapeType.Rectangle, leftMargin, topMargin, columnWidth, rowHeight);
generalInfo.FillFormat.FillType = FillType.Solid;
generalInfo.FillFormat.SolidFillColor.Color = Color.Transparent;
ITextFrame gitf = generalInfo.TextFrame;
gitf.Text = "test text";
IPortion port0 = gitf.Paragraphs[0].Portions[0];
port0.PortionFormat.FontHeight = 20;


I have observed the sample code shared and it seems fine. Please visit this documentation link for your kind reference in this regard. If there is still an issue then please share the sample presentation, generated output and working sample code with us. I will investigate the issue further on my end to help you out.

Many Thanks,