IRONSOFTWAREHOME
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,070Version:2026.9just released

Key in blue circle

Get your free 30-day Trial Key instantly.

Your trial license will be sent to your email address

No limitations. 100% unlocked. No credit card.

bullet_checkedNo credit card or account creation requiredNo limitations. 100% unlocked. No credit card.
  • Logo Aetna
  • Logo NASA
  • Logo GE
  • Logo Porsche
  • Logo USDA
  • Logo Qatar
Join Millions of Engineers who’ve tried IronPDF
Book your free Live Demo
Booking Badge

Trusted by Millions of Engineers Worldwide

Iron Software's customer logos
Get Your No-Obligation Consult
Complete the form below or email sales@ironsoftware.com
Your details will always be kept confidential.
Trusted by Millions of Engineers Worldwide
Iron Software's customer logos
Get your free 30-day Trial Key instantly.
No credit card or account creation required