Access shapes of selected shape

Hi,
I’m trying to find specific shape by AltText. The shape is inside other shape. When I loop through all shades of slide I get all main shapes. Then I want to get shapes of one of the main shapes, however there’s no Shapes property available so I can no loop deeper. Is there any way how can I access this lower placed shapes?
I’m using aspose slides 17.8 trial, language C#
FindingShapeInSlide.pdf (174.6 KB)

@j.komen,

I have observed your requirements and like to share that when you traverse shapes inside slides that may have GroupShapes inside that. You need to traverse the group shapes as well for desired shape. Please try using following sample code as reference on your end and may tailor that for recursion as well.

    public static void IterateShapes()
    {
        Presentation pres = new Presentation("test.pptx");

        foreach(ISlide slide in pres.Slides)
        {
            foreach(IShape shape in slide.Shapes)
            {
                //add for other shapes checking

                if (shape is IGroupShape)
                {
                    IGroupShape gShp = (IGroupShape)shape;

                    foreach (IShape grpShape in gShp.Shapes)
                    {

                        //Find shapes here and if there is group shape inside a group shape, traverse that as well
                    }
                }
            }
        }
    }