Show pageOld revisionsBacklinksAdd to bookBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== ReplaceAll ====== Method of [[:scripting:api:text-document:start|ITextDocument]] ===== Description ===== Replace all text matches in the document ===== Parameters ===== * [[scripting:api:data-type:BSTR|BSTR]] **strWhat** * [[scripting:api:data-type:BSTR|BSTR]] **strTo** * [[:scripting:api:find|eFind]] **dwFlags** = 0 (optional) * [[scripting:api:data-type:VARIANT|VARIANT]] **pRange** (optional) ==== Return Value ==== * [[:scripting:api:ranges:start|IRanges]] **ppRanges** ===== Syntax ===== ==== JavaScript ==== <code javascript> var ppRanges = TextDocument.ReplaceAll(strWhat, strTo, dwFlags, pRange); </code>==== Visual Basic Script ==== <code vb> ppRanges = TextDocument.ReplaceAll strWhat, strTo, dwFlags, pRange </code>==== C++ ==== <code cpp> CComPtr<IRanges> pRanges; HRESULT hr = TextDocument.ReplaceAll(strWhat, strTo, dwFlags, pRange, &pRanges); </code>===== See Also ===== [[:scripting:api:text-document:start|ITextDocument]] ~~NOTOC~~