Method of ITextDocument
Finds all text matches in the document
var ppRanges = TextDocument.FindAll(strText, dwFlags, pRange);
ppRanges = TextDocument.FindAll strText, dwFlags, pRange
CComPtr<IRanges> pRanges; HRESULT hr = TextDocument.FindAll(strText, dwFlags, pRange, &pRanges);