ExpansionProvider::BeginTemplateEditing Method (Int32, Int32)
Inserts the previously prepared code snippet and starts the snippet editing mode.
Assembly: Microsoft.VisualStudio.Package.LanguageService.14.0 (in Microsoft.VisualStudio.Package.LanguageService.14.0.dll)
Parameters
- line
-
Type:
System::Int32
[in] The line number where the insertion is to take place.
- col
-
Type:
System::Int32
[in] The character offset on the line where the insertion is to take place.
The snippet to be inserted has been prepared by a call to the PrepareTemplate method.
The base method calls InsertNamedExpansion on the IVsExpansion object that was obtained from the IVsTextLines object in the ExpansionProvider class constructor (ExpansionProvider). If the insertion fails, the base method calls the EndTemplateEditing method. Otherwise, the snippet is inserted and the snippet editing mode is enabled (the latter two steps are done in the InsertNamedExpansion method on the IVsExpansion object when that method calls the OnBeforeInsertion method).