Edit PPT in C#
Using Aspose.Slides for .NET , you can update text in a PPT presentation with a few lines of C# code.
C# code for editing PPT
using var presentation = new Presentation("document.ppt");
var slide = presentation.Slides[0];
if (slide.Shapes[0] is IAutoShape shape && shape.TextFrame is not null)
{
shape.TextFrame.Text = "New text";
}
presentation.Save("document.ppt", SaveFormat.Ppt);Edit PPT Using Aspose.Slides
Aspose.Slides for .NET can load PPT presentations, update slide content, and save the result as a PPT file.
How to Edit PPT
- Install Aspose.Slides for .NET.
- Load the PPT file with a
Presentationobject. - Access the target slide and shape through variables.
- Update the text through
TextFrameand save withSaveFormat.Ppt.
Built with Aspose.Slides
Edit PPTX Files Online
The free Aspose.Slides Editor app is built with Aspose.Slides for .NET, the same API as the code above. Open it and see what the API can do with your own PPTX files.
- Runs in your browser, nothing to install.
- See how Aspose.Slides handles your files before you write code.
- Upload your PPTX files and edit them instantly.
- Save and download the edited file.
Edit other files
You can also edit files in other formats