Aspose.Slides.Examples.CSharp.Rendering.Printing.SetSlideNumber.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(dataDir + "HelloWorld.pptx"))
            {
                // Get the slide number
                int firstSlideNumber = presentation.FirstSlideNumber;

                // Set the slide number
                presentation.FirstSlideNumber=10;

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

           

        }
    }
SetSlideNumber