Method of ITextDocument
Inserts or overwrites a string at the current cursor position
TextDocument.write(strText);
TextDocument.write strText
HRESULT hr = TextDocument.write(strText);
ITextDocument