Find function for word

Hi,

I follow the examples from Aspose Examples Dashboard. To replace the text, I can

Regex regex = new Regex(“search Text”, RegexOptions.None);
wordDoc.Range.Replace(regex, “new Text”);

Is there any method I can test if I can find the search text?

Thanks

Hi Alfred,


Thanks for your inquiry. You can achieve your requirement by implementing IReplacingCallback interface. Please use the same approach shared at following documentation link to find the text.
http://www.aspose.com/docs/display/wordsnet/How+to+Find+and+Highlight+Text

Please also read the following article about ‘Find and Replace’ from here:
http://www.aspose.com/docs/display/wordsnet/Find+and+Replace+Overview

Hope this helps you. Please let us know if you have any more queries.