VsExpansionPackageClass::InvokeInsertionUI Method (IVsTextView^, IVsExpansionClient^, Guid, array<String^>^, Int32, Int32, array<String^>^, Int32, Int32, String^, String^)
Shows an IntelliSense list of code snippets that can be inserted into the source through the provided IVsExpansionClient object. See InvokeInsertionUI.
Assembly: Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)
public: virtual int InvokeInsertionUI( IVsTextView^ pView, IVsExpansionClient^ pClient, Guid guidLang, array<String^>^ bstrTypes, int iCountTypes, int fIncludeNULLType, array<String^>^ bstrKinds, int iCountKinds, int fIncludeNULLKind, String^ bstrPrefixText, String^ bstrCompletionChar )
Parameters
- pView
-
Type:
Microsoft.VisualStudio.TextManager.Interop::IVsTextView^
[in] An IVsTextView object representing the view in which to present the list.
- pClient
-
Type:
Microsoft.VisualStudio.TextManager.Interop::IVsExpansionClient^
[in] An IVsExpansionClient object representing the expansion client that is used to complete the insertion of the code snippet.
- guidLang
-
Type:
System::Guid
[in] The GUID of the coding language (typically, this is the language service GUID).
- bstrTypes
-
Type:
array<System::String^>^
[in] An array strings specifying snippet types to display. This can be a null value if iCountTypes is 0.
- iCountTypes
-
Type:
System::Int32
[in] The number of types specified in the bstrTypes array. If this is 0, all types are displayed. [in]
- fIncludeNULLType
-
Type:
System::Int32
[in] Non-zero (TRUE) if to include code snippets with "empty" types in the bstrTypes list (this parameter is ignored if iCountTypes is 0).
- bstrKinds
-
Type:
array<System::String^>^
[in] An array of strings specifying the snippet kinds to display. This can be a null value if iCountKinds is 0.
- iCountKinds
-
Type:
System::Int32
[in] The number of kinds specified in the bstrKinds array. If this is 0, all kinds are displayed.
- fIncludeNULLKind
-
Type:
System::Int32
[in] Non-zero (TRUE) if to include code snippets with "empty" kinds in the bstrKinds list (this parameter is ignored if iCountKinds is 0).
- bstrPrefixText
-
Type:
System::String^
[in] A string containing the text to show in the prompt.
- bstrCompletionChar
-
Type:
System::String^
[in] A character that, when typed, inserts the currently selected snippet and closes the UI. If this is a null value or an empty string, typing the Enter key is the only way to insert a selected snippet.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.