Edit PPT in C#
Powerful cross-platform .NET API for editing PPT using C# code on NET Framework, .NET Core, Windows Azure, Mono or Xamarin Platforms
Edit PPT using Aspose.Slides
Aspose.Slides for .NET is a powerful .NET library used to manipulate and edit presentations. You can edit a PPT presentation by adding a new line of text to it.
Edit PPT in C#
Using Aspose.Slides for .NET , you can add a new line of text to a PPT document with just a few lines of code.
C# code for editing PPT
using (Presentation presentation = new Presentation("pres.ppt"))
{
AutoShape shape = (AutoShape)presentation.Slides[0].Shapes[0];
shape.TextFrame.Text = "New text";
presentation.Save("pres.ppt", SaveFormat.Ppt);
}
How to edit PPT in C#
Install Aspose.Slides for .NET. See Installation .
Add the library as a reference in your project.
Create an instance of the Presentation class.
Load the PPT presentation you want to edit.
Add a new line of text.
Save the changed PowerPoint file.