The Syncfusion .NET PowerPoint Library (Essential Presentation) enables you to enhance your presentation with thoughtful formatting, ensuring a consistent font style and logical slide layout. With the ability to format paragraphs, text, images, charts, shapes, and more, this library provides a comprehensive toolkit for refining every aspect of your PowerPoint presentation.
This example code shows how to format text and paragraphs in a presentation using the Syncfusion .NET PowerPoint Library with just few lines of code in C#.
using Syncfusion.Presentation;
//Load PowerPoint presentation
using FileStream inputStream = new("Template.pptx", FileMode.Open, FileAccess.Read, FileShare.ReadWrite);
//Open an existing PowerPoint presentation
using IPresentation pptxDoc = Presentation.Open(inputStream);
//Retrieve the first slide from presentation
ISlide slide = pptxDoc.Slides[0];
//Retrieve the first shape
IShape shape = slide.Shapes[0] as IShape;
//Retrieve the first paragraph of the shape
IParagraph paragraph = shape.TextBody.Paragraphs[0];
//Set center alignment for the paragraph
paragraph.HorizontalAlignment = HorizontalAlignmentType.Center;
//Retrieve the first TextPart of the shape
ITextPart textPart = paragraph.TextParts[0];
//Set bold for the text
textPart.Font.Bold = true;
//Save the PowerPoint presentation
using FileStream outputStream = new("Result.pptx", FileMode.Create, FileAccess.ReadWrite);
pptxDoc.Save(outputStream);
Customize each paragraph in a slide uniquely, including their alignment and indentation Create simple or multilevel lists for improved readability.
Organize text content within paragraphs using text parts and apply rich formatting options such as underlining, font customization, and font size adjustments.
Add or remove images in PowerPoint presentations programmatically. Resize, reposition, rotate, and apply additional formatting to images.
Enhance the appearance of a table by customizing its border, adjusting cell backgrounds, setting cell margins, and applying predefined table styles.
Customize chart elements, including the chart title, chart area, plot area, series, legend, data labels, and axes, to meet presentation requirements.
Format both normal and group shapes in a slide, which can include various graphical objects such as AutoShapes, charts, text, or pictures.
Discover resources from our knowledge base that enhance your efficiency in formatting PowerPoints:
Knowledge base
Explore these resources for comprehensive guides, knowledge base articles, insightful blogs, and ebooks.
Product Updates
Technical Support
Yes, you can customize font styles, sizes, and colors for text parts within paragraphs using the .NET PowerPoint Library in C#.
Yes, you can enhance table appearance by customizing borders, cell backgrounds, and applying predefined styles using the .NET PowerPoint Library in C#.
Yes, you can format images, including adjusting the width and height and cropping, using the .NET PowerPoint Library in C#.
Yes, the .NET PowerPoint Library supports creating multilevel lists in PowerPoint presentations using C#.
Yes, you can add or remove sections in PowerPoint presentations using the .NET PowerPoint Library.
You can use the Syncfusion.Presentation.Net.Core NuGet package. Detailed code samples available in the documentation.
Greatness—it’s one thing to say you have it, but it means more when others recognize it. Syncfusion® is proud to hold the following industry awards.