How to make the TextFrame border not visible

Hi,

Currently the TextFrame is black in colour, i.e. it is filled. I wish to see the text and all content in the text frame but I want the TextFrame to not be filled. By this I mean I do not want to see the TextFrame Border. Is this possible? Many thanks for your help. Regards, Anil

using (Presentation pres = new Presentation())
{

//Get first slide
ISlide sld = pres.Slides[0];

//Add an AutoShape of Rectangle type
IAutoShape ashp = sld.Shapes.AddAutoShape(ShapeType.Rectangle, 50, 50, 400, 300);

//Remove any fill style associated with the AutoShape
ashp.FillFormat.FillType = FillType.Solid;
//ashp.FillFormat.SolidFillColor.Color = Color.Tomato; //Background fill

//Access the TextFrame associated with the AutoShape
ITextFrame tf = ashp.TextFrame;
tf.Text = "Aspose TextBox";
//Access the Portion associated with the TextFrame
IPortion port = tf.Paragraphs[0].Portions[0];

//Set the Font for the Portion
port.PortionFormat.LatinFont = new FontData("Times New Roman");

//Set Bold property of the Font
port.PortionFormat.FontBold = NullableBool.True;

//Set Italic property of the Font
port.PortionFormat.FontItalic = NullableBool.True;

//Set Underline property of the Font
port.PortionFormat.FontUnderline = TextUnderlineType.Single;

//Set the Height of the Font
port.PortionFormat.FontHeight = 25;

//Set the color of the Font
port.PortionFormat.FillFormat.FillType = FillType.Solid;
port.PortionFormat.FillFormat.SolidFillColor.Color = Color.Blue;

//Getting the first paragraph of the placeholders
IParagraph para1 = tf.Paragraphs[0];

//Aligning the text paragraph to left and top
para1.ParagraphFormat.Alignment = TextAlignment.Left;
tf.TextFrameFormat.AnchoringType = TextAnchorType.Top;



//Save the PPTX file to the Disk
pres.Save(Path.Combine(filepath, "somefile.pptx"), Aspose.Slides.Export.SaveFormat.Pptx);

}

Hi Anil,

I have observed your requirements and like to request you to please try using following sample code on your end to serve the purpose.

ashp.FillFormat.FillType = FillType.NoFill;
ashp.LineFormat.FillFormat.FillType = FillType.NoFill;

I hope this will work. Please share, if I may help you further in this regard.

Many Thanks,