Edit PPT in C#
Edit PPT presentations in C# using Aspose.Slides for .NET.
Edit PPT Using Aspose.Slides
Aspose.Slides for .NET can load PPT presentations, update slide content, and save the result as a PPT file.
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);
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.