Method of ITextView
Insert template in specific position
var pptEnd = TextView.InsertTemplate(rgSelection, strText, nAction, bNoIndent);
pptEnd = TextView.InsertTemplate rgSelection, strText, nAction, bNoIndent
CComPtr<IPosition> pptEnd; HRESULT hr = TextView.InsertTemplate(rgSelection, strText, nAction, bNoIndent, &ptEnd);