ICompletionBroker::CreateCompletionSession Method (ITextView^, ITrackingPoint^, Boolean)

 

Creates a completion session, but does not start it.

Namespace:   Microsoft.VisualStudio.Language.Intellisense
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.

You can use this method if you want to set some properties on the session before starting it.

Return to top
Show: