Add Paragraph
using IronPPT;
using IronPPT.Models;

// Create new PowerPoint presentation
var document = new PresentationDocument();

// Add text to paragraph
var paragraph = new Paragraph();
paragraph.AddText("First paragraph.");

// Add paragraph
document.Slides[0].AddParagraph(paragraph);

// Export PowerPoint presentation
document.Save("addParagraph.pptx");
Imports IronPPT
Imports IronPPT.Models

' Create new PowerPoint presentation
Dim document As New PresentationDocument()

' Add text to paragraph
Dim paragraph As New Paragraph()
paragraph.AddText("First paragraph.")

' Add paragraph
document.Slides(0).AddParagraph(paragraph)

' Export PowerPoint presentation
document.Save("addParagraph.pptx")
NuGet Download
PM > Install-Package IronPPT
Add Paragraph

Add Paragraph

Automating the process of adding paragraphs in a PowerPoint presentation can be a game-changer, especially as the number of slides increases. This liberation from repetitive tasks enables developers to allocate their time and energy to the actual content of the slides, thereby enhancing productivity and creativity.

IronPPT gives developers complete control over adding paragraphs to slides programmatically. All it takes is a couple of lines of code, and we're on our way to populating each slide with informative content with ease.

5-Step Guide to Adding Paragraphs

  • var document = new PresentationDocument();
  • var paragraph = new Paragraph();
  • paragraph.AddText("First paragraph.");
  • document.Slides[0].AddParagraph(paragraph);
  • document.Save("addParagraph.pptx");

Code Explanation

Before we add a new paragraph, we first instantiate a new PresentationDocument as our empty PowerPoint presentation. Afterwards, we instantiate a new Paragraph object, and use the AddText method to add some text to it.

Finally, we access the slides by accessing the Slides property, which returns an array of Slide objects that represent the slides in the current PowerPoint presentation. We pass the Paragraph object to the AddParagraph to add the paragraph to the first slide, then finally save the edited PowerPoint presentation with Save.

Explore Slide Management with IronPPT
View on GitHub

Ready to Get Started?

Nuget Downloads 6,246Version:2026.10just released