Aspose.Slides.Examples.CSharp.Rendering.Printing.SetZoom.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_Rendering();

            // Instantiate a Presentation object that represents a presentation file
            using (Presentation presentation = new Presentation())
            {
                // Setting View Properties of Presentation

                presentation.ViewProperties.SlideViewProperties.Scale = 100; // Zoom value in percentages for slide view
                presentation.ViewProperties.NotesViewProperties.Scale = 100; // Zoom value in percentages for notes view 

                presentation.Save(dataDir + "Zoom_out.pptx", SaveFormat.Pptx);
            }
        }
    }
SetZoom