Aspose.Words ( : Highlight specific text in entire word document

I have an Aspose.Words old version ( in the Aspose.Total package.
I want to highlight a particular text with yellow color in the entire document.
How I can do it in this mentioned version?


The following C# code of Aspose.Words for .NET API shows how to highlight specific text in your entire Word document with yellow color:

Document doc = new Document("C:\\Temp\\input.docx");

FindReplaceOptions options = new FindReplaceOptions();

options.ApplyFont.HighlightColor = Color.Yellow;
doc.Range.Replace("particular text", "particular text", options);

options.ApplyFont.HighlightColor = Color.Green;
doc.Range.Replace("some other text", "some other text", options);