ExpansionProvider.EndTemplateEditing Method

Ends the current snippet editing mode.

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

Syntax

声明
Public Overridable Sub EndTemplateEditing ( _
    leaveCaret As Boolean _
)
用法
Dim instance As ExpansionProvider
Dim leaveCaret As Boolean

instance.EndTemplateEditing(leaveCaret)
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: System.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

ExpansionProvider Members

Microsoft.VisualStudio.Package Namespace