ReplaceText

Method of IDocument

Replace text in specific range

Return Value

JavaScript

var ptEnd = Document.ReplaceText(pRange, strChars, nAction);

Visual Basic Script

ptEnd = Document.ReplaceText pRange, strChars, nAction

C++

CComPtr<IPosition> ptEnd;
HRESULT hr = Document.ReplaceText(pRange, strChars, nAction, &tEnd);