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

Free Support Forum - aspose.com

Shape fill is undefined, but should be gradient

Hi Aspose. I have some technical difficulties detecting shape fill type. I made a shape in Powerpoint and made it gradient filled. But the library shows that it’s fill type is undefined. Could you please advise how to detect fill type correctly? Here’s the sample project:


Please try using following sample code on your end to serve the purpose.

        using (Presentation pres = new Presentation("clean gradient shape.pptx"))
            foreach (IShape shape in pres.Slides.SelectMany(x=>x.Shapes))
                var ds=shape.CreateFillFormatEffective();
                var fillType2 = ds.FillType;