Highlight Text in PowerPoint with C# REST API

In this tutorial you’ll learn how to highlight text in PowerPoint using the C# REST API. We’ll guide you through creating a presentation‑highlighting tool with a C# REST interface powered by the .NET‑based Aspose.Slides Cloud SDK, and cover multiple techniques for applying a specific color to various parts of your slides.

Prerequisite

Steps to Highlight in PowerPoint with C# Low Code API

  1. Setup the SlidesApi object with the Client ID and secret to highlight text
  2. Upload the source presentation to highlight the selected text
  3. Invoke the HighlightShapeText() method in the API by providing the target text information
  4. Download the updated presentation with the highlighted text

These steps explain how to develop a PPT highlighter with C# .NET-based API. Create the SlidesApi object, upload the target presentation, and invoke the HighlightShapeText() method. Pass the uploaded file name, slide index, target shape index in the slide, text string to be highlighted, and color code in RGB format.

Code for PowerPoint Presentation Highlighter with C# RESTful Service

This example illustrates how to create a PowerPoint highlighter pen with C# REST API and apply it to highlight text inside a specific shape. You can also use the HighlightShapeRegex() method to highlight text in a shape via regex, the HighlightPresentationRegex() method to highlight across the entire presentation, and the HighlightPresentationText() method to target and highlight particular text throughout the deck.

By following the steps above, you now know how to search for specific text and apply highlighting in a PowerPoint presentation using the C# REST API. Ready to expand your automation skills? Check out the companion guide on adding hyperlinks to a presentation in the article Add hyperlink to PowerPoint with C# REST API.

 English