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

Free Support Forum - aspose.com

How to set "No line" on Autoshapes

I want to remove the line/outline around shapes, but can't work out how to do this. In the PowerPoint interface, you have the option to specify "No line" for the line that traces the outline of the shape.

I have tried the following code approach (based on this forum thread: https://forum.aspose.com/t/69102), but it does not remove the line:

shape.LineFormat.FillFormat.SolidFillColor.Color = Color.Transparent;
shape.LineFormat.Width = 0;

How can I get rid of these shape outlines? Is there an alternative approach, or am I doing something wrong?

Alternatively, is it possible to insert a pure TextBox object (which presumably doesn't come with an outline as default)? I can't see how to do that either....

Hi Steven,

I have observed your requirements and like to share that in order to hide the line around the shape you need to use the following statement to serve the purpose. I hope this will work. Please share, if I may help you further in this regard.

shape.LineFormat.FillFormat.FillType=FillType.NoFill;

Many Thanks,

Hi,

This approach works well, and does what I need.
Thanks for your help.