ICompletionBroker.CreateCompletionSession Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a completion session, but does not start it.
public:
Microsoft::VisualStudio::Language::Intellisense::ICompletionSession ^ CreateCompletionSession(Microsoft::VisualStudio::Text::Editor::ITextView ^ textView, Microsoft::VisualStudio::Text::ITrackingPoint ^ triggerPoint, bool trackCaret);
public:
Microsoft::VisualStudio::Language::Intellisense::ICompletionSession ^ CreateCompletionSession(Microsoft::VisualStudio::Text::Editor::ITextView ^ textView, Microsoft::VisualStudio::Text::ITrackingPoint ^ triggerPoint, bool trackCaret);
Microsoft::VisualStudio::Language::Intellisense::ICompletionSession CreateCompletionSession(Microsoft::VisualStudio::Text::Editor::ITextView const & textView, Microsoft::VisualStudio::Text::ITrackingPoint const & triggerPoint, bool trackCaret);
public Microsoft.VisualStudio.Language.Intellisense.ICompletionSession CreateCompletionSession (Microsoft.VisualStudio.Text.Editor.ITextView textView, Microsoft.VisualStudio.Text.ITrackingPoint triggerPoint, bool trackCaret);
abstract member CreateCompletionSession : Microsoft.VisualStudio.Text.Editor.ITextView * Microsoft.VisualStudio.Text.ITrackingPoint * bool -> Microsoft.VisualStudio.Language.Intellisense.ICompletionSession
Public Function CreateCompletionSession (textView As ITextView, triggerPoint As ITrackingPoint, trackCaret As Boolean) As ICompletionSession
Parameters
- triggerPoint
- ITrackingPoint
The point in the text buffer at which statement completion is requested.
- trackCaret
- Boolean
true
if this session should track the caret, false
otherwise. When the caret is tracked, only completion items whose
applicability span contains the caret will be displayed.
Returns
A valid statement completion session. May be null if no session could be created.
Remarks
This method is useful if you want to set some properties on the session before starting it.