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

Run() public static method

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

            using (Presentation presentation = new Presentation())
            {
                // Add SmartArt BasicProcess 
                ISmartArt smart = presentation.Slides[0].Shapes.AddSmartArt(10, 10, 400, 300, SmartArtLayoutType.BasicProcess);

                // Get or Set the state of SmartArt Diagram
                smart.IsReversed = true;
                bool flag = smart.IsReversed;

                // ExEnd:ChangeSmartArtState
                // Saving Presentation
                presentation.Save(dataDir + "ChangeSmartArtState_out.pptx", SaveFormat.Pptx);
            }
        }
    }
ChangeSmartArtState