PPT PPTX ODP POT ppsx
Aspose.Slides  for .NET
PPT

Search Text PPT using C#

Build your own .NET apps to search and replace text in presentation files using server-side APIs. Learn how to find all the entrances of a certain word or phrase in presentation documents. Search text by exact data matching and regular expression matching.

Search and Replace Text PPT Presentation via C#

A basic document search and replace text in contents, comments, slide notes or metadata with Aspose.Slides for .NET APIs can be done with just few lines of code. Use regular expression matching, match case to search text in presentation. Search text in titles, content, footer or header.

Search text PPT Presentation using C#


using (Presentation presentation = new Presentation("welcome-to-powerpoint.ppt"))
{
    Aspose.Slides.Util.SlideUtil.FindAndReplaceText(presentation, true, "PowerPoint", "Aspose.Slides", null);
    presentation.Save("replaced.ppt", SaveFormat.Ppt);
}

How to Search Text in PPT via C#

These are the steps to search text PPT files.

  1. Load PPT with an instance of Presentation.

  2. Use FindAndReplaceText method to find and replace text.

  3. Save result in PPT format

Online PPT Search Live Demos