ICompletionBroker::CreateCompletionSession Method (ITextView^, ITrackingPoint^, Boolean)
Visual Studio 2015
Creates a completion session, but does not start it.
Assembly: Microsoft.VisualStudio.Language.Intellisense (in Microsoft.VisualStudio.Language.Intellisense.dll)
ICompletionSession^ CreateCompletionSession(
ITextView^ textView,
ITrackingPoint^ triggerPoint,
bool trackCaret
)
Parameters
- textView
-
Type:
Microsoft.VisualStudio.Text.Editor::ITextView^
The ITextView over which to create a completion session.
- triggerPoint
-
Type:
Microsoft.VisualStudio.Text::ITrackingPoint^
The ITrackingPoint in the text buffer at which statement completion is requested.
- trackCaret
-
Type:
System::Boolean
true if this session should track the caret, false otherwise. When the caret is tracked, only the completion items whose applicability span contains the caret will be displayed.
Return Value
Type: Microsoft.VisualStudio.Language.Intellisense::ICompletionSession^The ICompletionSession.
You can use this method if you want to set some properties on the session before starting it.
Show: