Aspose.Slides.Examples.CSharp.SmartArts.AccessSmartArtShape.Run C# (CSharp) Method

Run() public static method

public static Run ( ) : void
return void
        public static void Run()
        {
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir_SmartArts();

            // Load the desired the presentation
            using (Presentation pres = new Presentation(dataDir+ "AccessSmartArtShape.pptx"))
            {

                // Traverse through every shape inside first slide
                foreach (IShape shape in pres.Slides[0].Shapes)
                {
                    // Check if shape is of SmartArt type
                    if (shape is ISmartArt)
                    {
                        // Typecast shape to SmartArtEx
                        ISmartArt smart = (ISmartArt)shape;
                        System.Console.WriteLine("Shape Name:"+ smart.Name);
                    
                    }
                }

            }
        }
    }
AccessSmartArtShape