Partager via


ExpansionProvider.EndTemplateEditing Method

Ends the current snippet editing mode.

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.12.0 (in Microsoft.VisualStudio.Package.LanguageService.12.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
  Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)

Syntax

'Declaration
Public Overridable Sub EndTemplateEditing ( _
    leaveCaret As Boolean _
)
public virtual void EndTemplateEditing(
    bool leaveCaret
)
public:
virtual void EndTemplateEditing(
    bool leaveCaret
)
abstract EndTemplateEditing : 
        leaveCaret:bool -> unit  
override EndTemplateEditing : 
        leaveCaret:bool -> unit
public function EndTemplateEditing(
    leaveCaret : boolean
)

Parameters

  • leaveCaret
    Type: Boolean

    [in] This is true if the caret is to be left where it was before the snippet was inserted; otherwise, this is false if the caret is positioned where the snippet indicates.

Remarks

The base method calls the EndCurrentExpansion method on the IVsExpansionSession object representing the expansion session. The IVsExpansionSession was obtained from the InsertSpecificExpansion or InsertNamedExpansion methods.

.NET Framework Security

See Also

Reference

ExpansionProvider Class

Microsoft.VisualStudio.Package Namespace