scripting:api:text-document:replace-all

ReplaceAll

Method of ITextDocument

Replace all text matches in the document

var ppRanges = TextDocument.ReplaceAll(strWhat, strTo, dwFlags, pRange);
ppRanges = TextDocument.ReplaceAll strWhat, strTo, dwFlags, pRange
CComPtr<IRanges> pRanges;
HRESULT hr = TextDocument.ReplaceAll(strWhat, strTo, dwFlags, pRange, &pRanges);