InsertText

Method of IDocument

Inserts text in specific position

Return Value

JavaScript

var ptEnd = Document.InsertText(ptStart, strChars, nAction);

Visual Basic Script

ptEnd = Document.InsertText ptStart, strChars, nAction

C++

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