ICompletionBroker::TriggerCompletion Method (ITextView^, ITrackingPoint^, Boolean)
Visual Studio 2015
Starts the process of statement completion at the specified position.
Assembly: Microsoft.VisualStudio.Language.Intellisense (in Microsoft.VisualStudio.Language.Intellisense.dll)
ICompletionSession^ TriggerCompletion(
ITextView^ textView,
ITrackingPoint^ triggerPoint,
bool trackCaret
)
Parameters
- textView
-
Type:
Microsoft.VisualStudio.Text.Editor::ITextView^
The ITextView over which to trigger statement completion.
- triggerPoint
-
Type:
Microsoft.VisualStudio.Text::ITrackingPoint^
The point 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 completion items whose applicability span contains the caret will be displayed.
Return Value
Type: Microsoft.VisualStudio.Language.Intellisense::ICompletionSession^A valid T:Microsoft.VisualStudio.Language.Intellisense.IStatementCompletionSession. This may be null if no session could be created.
When this method is called with a specific trigger point, caret movements will be ignored and the broker will not be responsible for dismissing the session.
Show: