search a given word in word file by Aspose I implemented a function to check a MS Word document is contain a given word or not. The function will return true if filePath is contain word. Otherwise it will return false.

This is my solution based on Aspose framework. Is there any better solution?

public class FindContentOfWordDoc
{
    public bool FindContent(string filePath, string content)
    {
        var doc = new Document(filePath);

        var findReplaceOptions = new FindReplaceOptions
        {
            ReplacingCallback = new FindCallBack(),
            Direction = FindReplaceDirection.Backward
        };

        var regex = new Regex(content, RegexOptions.IgnoreCase);
        doc.Range.Replace(regex, "", findReplaceOptions);

        return (findReplaceOptions.ReplacingCallback as FindCallBack)?.IsMatch ?? false;
    }

    private class FindCallBack : IReplacingCallback
    {
        public bool IsMatch { get; private set; }
        ReplaceAction IReplacingCallback.Replacing(ReplacingArgs e)
        {
            IsMatch = true;
            return ReplaceAction.Stop;
        }
    }
}


Thanks!
Some quick remarks:

FindContentOfWordDoc is a bad class name, in the first place because it contains a verb. Please follow the Microsoft rules.

While this code only does a search, it is peppered with names that refer to &quot;find and replace&quot;. This makes it hard to understand. I assume this must be due to Aspose, so perhaps this is inevitable, but then perhaps you could add some comments to explain why you implemented it this way.
Are you certain this is the best way to execute a search? I find it odd that you would need to &quot;abuse&quot; the &quot;find and replace&quot; functionality; it seems odd that Aspose would include that functionality yet not a &quot;find&quot; on its own.

You don't check content: is this function only intended for single word queries, or also for combinations of words? And why not check if the user actually entered a search term, in order to avoid invoking the callback etc. on a null or an empty string?