How to use text replace Callback (C# .NET)

Howdy -

  • We have a paid license for Aspose

  • For our code that deals with word, we have a find/replace handler callback that gets called when text gets replaced and it works great.

We call it like this:

            FindReplaceOptions options = new FindReplaceOptions();
            options.ReplacingCallback = new ReplaceHandler();
            options.Direction = FindReplaceDirection.Backward;
            options.PreserveMetaCharacters = true;
             //  ....
             paragraph.Range.Replace(p.OriginalPhrase, p.TargetText, options);
  • This code works great for converting HTML into word markup when you’re replacing the text.
  • My question is, does Slides .net have the same thing? I didn’t see it in the API docs. Is there another easy way to convert HTML markup into ppt markup?

@taylorackley,

I have observed your requirements and like to share that Aspose.Slides API does allow you to import HTML and render that PowerPoint text. But it is different than what you are using in Aspose.Words. In Aspose.Slides the only text related HTML tags can get imported in text frame of any shape. I suggest you to please visit this documentation link for your kind reference in this regard.