C# .NET REST API for PowerPoint Sections management

PowerPoint presentation Processing Image

Cataloging is a great way to logically group related items and as we are familiar with the use of folders to organize related files, therefore a similar approach to use sections can be opted to organize your slides into meaningful groups. It also provides you the leverage that you can assign each colleague a section to make slide ownership clear during collaboration. And if you’re starting with a blank slate, you can use sections to outline your presentation. Usually, Sections are designed to be used with large presentations that contain a large number of slides that can easily be grouped into logical groupings as it makes your presentation easier to navigate. Furthermore, the Sections can be collapsed or expanded in the slide navigation pane and named for easy reference.

Before we proceed further, we need to install Aspose.Slides Cloud SDK for .NET and the easiest way is NuGet package using the following command in package manager console:

Install-Package Aspose.Slides-Cloud -Version 21.2.0 

Once the installation has been completed, the next step is getting authentication credentials so that you can easily and securely use our APIs. For further details, please visit

Sections management

Aspose.Slides Cloud provides the capabilities to

Get Existing Presentation Sections

Request URL

GET https://api.aspose.cloud/v3.0/slides/myPresentation.pptx/sections?folder=myFolder

C#.NET

Set PowerPoint sections

Request URL

PUT https://api.aspose.cloud/v3.0/slides/myPresentation.pptx/sections?folder=myFolder

Request Body

{ "sectionList": [{ "name": "Section1", "firstSlideIndex": 1 }, { "name": "Section2", "firstSlideIndex": 4 }]}

C#.NET

Create a New Section

Request URL

POST https://api.aspose.cloud/v3.0/slides/myPresentation.pptx/sections?folder=myFolder&sectionName=NewSection&slideIndex=4

C#.NET

Change Section Name

Request URL

PUT https://api.aspose.cloud/v3.0/slides/myPresentation.pptx/sections/2?folder=myFolder&sectionName=UpdatedSection

C#.NET

Move Section and Slide to other Position

Request URL

POST https://api.aspose.cloud/v3.0/slides/myPresentation.pptx/sections/1/move?folder=myFolder&newPosition=2

C#.NET

Delete a Section

Request URL

DELETE https://api.aspose.cloud/v3.0/slides/myPresentation.pptx/sections/2?folder=myFolder

C#.NET