ICompletionBroker.TriggerCompletion Method (ITextView, ITrackingPoint, Boolean)

Starts the process of statement completion at the specified position.

Namespace:  Microsoft.VisualStudio.Language.Intellisense
Assembly:  Microsoft.VisualStudio.Language.Intellisense (in Microsoft.VisualStudio.Language.Intellisense.dll)

ICompletionSession TriggerCompletion(
	ITextView textView,
	ITrackingPoint triggerPoint,
	bool trackCaret


Type: Microsoft.VisualStudio.Text.Editor.ITextView

The ITextView over which to trigger statement completion.

Type: Microsoft.VisualStudio.Text.ITrackingPoint

The point in the text buffer at which statement completion is requested.

Type: 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 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.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft