Compartir a través de


ExpansionProvider.BeginTemplateEditing(Int32, Int32) Method

Definition

Inserts the previously prepared code snippet and starts the snippet editing mode.

public:
 virtual void BeginTemplateEditing(int line, int col);
public:
 virtual void BeginTemplateEditing(int line, int col);
 virtual void BeginTemplateEditing(int line, int col);
public virtual void BeginTemplateEditing (int line, int col);
abstract member BeginTemplateEditing : int * int -> unit
override this.BeginTemplateEditing : int * int -> unit
Public Overridable Sub BeginTemplateEditing (line As Integer, col As Integer)

Parameters

line
Int32

[in] The line number where the insertion is to take place.

col
Int32

[in] The character offset on the line where the insertion is to take place.

Remarks

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).

Applies to