We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Slides / shapes / formatting and text

we have recently upgraded to the latest version of aspose slides and there are many portions of the code that no longer work. I am addressing the issues one at a time, so here is the latest...

we have created a shape to which we have added text and formatting using paragraph, portion, and textframe. here is the line that causes the error...


the error says - "Aspose.Slides.IShape does not contain a definition for 'TextFrame' and no extension method 'TextFrame' accepting a first argument of type 'Aspose.Slides.IShape' could be found...

here is the code...

para = new Paragraph();
para.Portions.Add(new Portion(myText));
para.Portions[0].PortionFormat.FontHeight = 8;
para.Portions[0].PortionFormat.FillFormat.FillType = FillType.Solid;
para.Portions[0].PortionFormat.FillFormat.SolidFillColor.Color = fColor;
para.ParagraphFormat.Alignment = TextAlignment.Center;

can you help me add text that is formatted as it is in the above code and add it to a shape


Hi Joe,

Thanks for inquiring Aspose.Slides.

I have observed the issue shared by you and request you to please share the source presentation along with working sample project with us. I will investigate the issue further on my end to help you out.

Many Thanks,