How to Manage Slide in PowerPoint
A slide is a single page or screen in a presentation. It serves as the fundamental building block for organizing and displaying content. Slides are used to convey information visually and can include text, images, charts, tables, videos, audio, animations, and other design elements.
Managing slides in a PowerPoint presentation involves adding, reordering, editing, deleting, and hiding slides to structure your content effectively.
Get started with IronPPT
Start using IronPPT in your project today with a free trial.
How to Manage Slide in PowerPoint
- Download a C# library for managing slides in PPT
- Add slides using the AddSlide method
- Gain full control over slides with slide properties
- Remove, reorder, and hide slides with a single line of code
- Export the final PowerPoint presentation
Add Slide
Easily add a new slide to the presentation using the AddSlide
method. New slides are appended to the end of the current slide list, allowing you to expand your presentation seamlessly.
:path=/static-assets/ppt/content-code-examples/how-to/manage-slide-add-slide.cs
using IronPPT;
var document = new PresentationDocument();
// Add slides
document.AddSlide();
document.AddSlide();
document.AddSlide();
document.Save("addSlides.pptx");
Imports IronPPT
Private document = New PresentationDocument()
' Add slides
document.AddSlide()
document.AddSlide()
document.AddSlide()
document.Save("addSlides.pptx")
Remove Slide
Delete unwanted slides using the Remove
method. This feature ensures you can quickly refine your content and remove unnecessary slides without disrupting the overall structure.
Tips
:path=/static-assets/ppt/content-code-examples/how-to/manage-slide-remove-slide.cs
using IronPPT;
var document = new PresentationDocument();
document.AddSlide();
// Remove slide
document.Slides[0].Remove();
document.Save("removeSlide.pptx");
Imports IronPPT
Private document = New PresentationDocument()
document.AddSlide()
' Remove slide
document.Slides(0).Remove()
document.Save("removeSlide.pptx")
Reorder Slide
Rearrange the order of slides to better fit the flow of your presentation. Reordering slides is simple and efficient, making it easy to update the sequence of ideas or adapt to new requirements.
:path=/static-assets/ppt/content-code-examples/how-to/manage-slide-reorder-slide.cs
using IronPPT;
var document = new PresentationDocument();
document.AddSlide();
// Move slide by changing the Index property.
document.Slides[0].Index = 1;
document.Save("reorderSlide.pptx");
Imports IronPPT
Private document = New PresentationDocument()
document.AddSlide()
' Move slide by changing the Index property.
document.Slides(0).Index = 1
document.Save("reorderSlide.pptx")
Hide Slide
Hide specific slides while keeping them in the presentation. Hidden slides are not displayed during the slideshow but remain accessible for editing or use in future presentations.
:path=/static-assets/ppt/content-code-examples/how-to/manage-slide-hide-slide.cs
using IronPPT;
var document = new PresentationDocument();
document.AddSlide();
// Hide slide
document.Slides[0].Show = false;
document.Save("hideSlide.pptx");
Imports IronPPT
Private document = New PresentationDocument()
document.AddSlide()
' Hide slide
document.Slides(0).Show = False
document.Save("hideSlide.pptx")