Class SlideExamples
- Namespace
- FileFormat.Slides.Examples
- Assembly
- FileFormat.Slides.Examples.dll
Provides C# code examples for creating, reading, and modifying slides in a Presentation using the FileFormat.Slides library.
public class SlideExamples
- Inheritance
-
SlideExamples
- Inherited Members
Constructors
SlideExamples()
Initializes a new instance of the SlideExamples class. Prepares the directory 'Presentations/New' for storing or loading PowerPoint(PPT or PPTX) presentations at the root of the project. If the directory doesn't exist, it is created. If it already exists, existing files are deleted, and the directory is cleaned up.
public SlideExamples()
Methods
AddBackgroundColorToAnExistingSlide(string, string)
public void AddBackgroundColorToAnExistingSlide(string documentDirectory = "../../../Presentations/Existing", string filename = "test.pptx")
Parameters
CreateNewSlideInExistingPresentation(string, string)
This method creates new slide in an existing presentation
public void CreateNewSlideInExistingPresentation(string documentDirectory = "../../../Presentations/Existing", string filename = "test.pptx")
Parameters
CreateNewSlideInNewPresentation(string, string)
This method create slides in a new presentation
public void CreateNewSlideInNewPresentation(string documentDirectory = "../../../Presentations/New", string filename = "test.pptx")
Parameters
RemoveSlideInAnExistingPresentation(string, string)
This method removes slide in an existing presentation
public void RemoveSlideInAnExistingPresentation(string documentDirectory = "../../../Presentations/Existing", string filename = "test.pptx")