Hi Wahoho,
Presentation pres = new
Presentation();<o:p></o:p>
//Get the first slide
ISlide sld = pres.Slides[0];
//Add an AutoShape of Rectangle type
IAutoShape ashp = sld.Shapes.AddAutoShape(ShapeType.Rectangle, 150, 75, 150, 50);
//Add TextFrame to the Rectangle
ashp.AddTextFrame(" ");
//Accessing the text frame
ITextFrame txtFrame = ashp.TextFrame;
//Create the Paragraph object for text frame
IParagraph para = txtFrame.Paragraphs[0];
//Create Portion object for paragraph
IPortion portion = para.Portions[0];
//Set Text
portion.Text = "Aspose TextBox1234";
if ((portion.Text.Length * 10) > ashp.Width)
{
String str = portion.Text.Remove(portion.Text.Length-3);
MessageBox.Show(str);
portion.Text = str + "...";
}
//Save the presentation to disk
pres.Save(@"D:\Test.pptx", SaveFormat.Pptx);