Method of ITextDocument
Finds text in the document from the given start position
var pbResult = TextDocument.Find(ptStart, strText, dwFlags, pRange);
pbResult = TextDocument.Find ptStart, strText, dwFlags, pRange
CComPtr<IRange> pbResult; HRESULT hr = TextDocument.Find(ptStart, strText, dwFlags, pRange, &bResult);