====== InsertTemplate ======
Method of [[:scripting:api:text-view:start|ITextView]]
===== Description =====
Insert template in specific position
===== Parameters =====
* [[:scripting:api:range:overview|IRange]] **rgSelection**
* [[scripting:api:data-type:BSTR|BSTR]] **strText**
* [[scripting:api:data-type:UINT|UINT]] **nAction**
* [[scripting:api:data-type:VARIANT_BOOL|VARIANT_BOOL]] **bNoIndent** = VARIANT_FALSE (optional)
==== Return Value ====
* [[:scripting:api:position:start|IPosition]] **pptEnd**
===== Syntax =====
==== JavaScript ====
var pptEnd = TextView.InsertTemplate(rgSelection, strText, nAction, bNoIndent);
==== Visual Basic Script ====
pptEnd = TextView.InsertTemplate rgSelection, strText, nAction, bNoIndent
==== C++ ====
CComPtr pptEnd;
HRESULT hr = TextView.InsertTemplate(rgSelection, strText, nAction, bNoIndent, &ptEnd);
===== See Also =====
[[:scripting:api:text-view:start|ITextView]]
~~NOTOC~~