In my Java code I’m trying to find some text and process its Run node in a handler. I found some solutions in this topic based on Range.replace().
I’m using this method and it works just fine, BUT the method is marked as deprecated in your .jar. In your API documentation I see no mention of this deprecation. Can you tell me which alternative I should use?
So it’s about class com.aspose.words.Range and method: int replace(Pattern pattern, IReplacingCallback handler, boolean isForward)
In the handler I want to process the node found myself, and then I return ‘STOP’, so I only need the first hit (searching from end of document to front).
Thanks. I hadn’t found the IReplacingCallback in FindReplaceOptions, maybe a good idea to also add the deprecation to Range | Aspose.Words for Java, and a pointer to the article…
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.