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

  1. Install Aspose.Slides for .NET .

  2. Load the PPT file with a Presentation object.

  3. Access the target slide and shape through variables.

  4. Update the text through TextFrame and save with SaveFormat.Ppt.

Edit other files

You can also edit files in other formats