Aspose.Slides.Examples.CSharp.Presentations.Saving.SaveAsPredefinedViewType.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_PresentationSaving();

            // Opening the presentation file
            Presentation presentation = new Presentation();

            // Setting view type 
            presentation.ViewProperties.LastView = ViewType.SlideMasterView;

            // Saving presentation
            presentation.Save(dataDir + "SetViewType_out.pptx", Aspose.Slides.Export.SaveFormat.Pptx);
        }
    }
SaveAsPredefinedViewType