ExpansionProvider::OnItemChosen Method (String^, String^)
Visual Studio 2015
Called when an item is chosen in a snippet browser.
Assembly: Microsoft.VisualStudio.Package.LanguageService.14.0 (in Microsoft.VisualStudio.Package.LanguageService.14.0.dll)
Parameters
- pszTitle
-
Type:
System::String^
[in] A string containing the name of the snippet that was selected.
- pszPath
-
Type:
System::String^
[in] A string containing the path to the snippet template file.
This method is an implementation of the OnItemChosen method on the IVsExpansionClient interface.
The base method gets the current caret position from the IVsTextView object passed to the InsertSpecificExpansion or InsertNamedExpansion methods and then calls the InsertNamedExpansion method on the IVsExpansionClient object, returning the success code from that call to the InsertNamedExpansion method.
Show: