Share via


ICompletionBroker.TriggerCompletion Method

Definition

Overloads

TriggerCompletion(ITextView)

Starts the process of statement completion, assuming the caret position to be the position at which completions should be inserted.

TriggerCompletion(ITextView, ITrackingPoint, Boolean)

Starts the process of statement completion at a particular position. When called with a specific trigger point, caret movements will be ignored and the broker will not be responsible for dismissing the session.

TriggerCompletion(ITextView)

Starts the process of statement completion, assuming the caret position to be the position at which completions should be inserted.

public:
 Microsoft::VisualStudio::Language::Intellisense::ICompletionSession ^ TriggerCompletion(Microsoft::VisualStudio::Text::Editor::ITextView ^ textView);
public:
 Microsoft::VisualStudio::Language::Intellisense::ICompletionSession ^ TriggerCompletion(Microsoft::VisualStudio::Text::Editor::ITextView ^ textView);
Microsoft::VisualStudio::Language::Intellisense::ICompletionSession TriggerCompletion(Microsoft::VisualStudio::Text::Editor::ITextView const & textView);
public Microsoft.VisualStudio.Language.Intellisense.ICompletionSession TriggerCompletion (Microsoft.VisualStudio.Text.Editor.ITextView textView);
abstract member TriggerCompletion : Microsoft.VisualStudio.Text.Editor.ITextView -> Microsoft.VisualStudio.Language.Intellisense.ICompletionSession
Public Function TriggerCompletion (textView As ITextView) As ICompletionSession

Parameters

textView
ITextView

The ITextView over which to trigger statement completion.

Returns

A valid statement completion session. May be null if no session could be created.

Remarks

When the caret leaves the applicability span of all the completions in this session, the session will be automatically dismissed.

Applies to

TriggerCompletion(ITextView, ITrackingPoint, Boolean)

Starts the process of statement completion at a particular position. When called with a specific trigger point, caret movements will be ignored and the broker will not be responsible for dismissing the session.

public:
 Microsoft::VisualStudio::Language::Intellisense::ICompletionSession ^ TriggerCompletion(Microsoft::VisualStudio::Text::Editor::ITextView ^ textView, Microsoft::VisualStudio::Text::ITrackingPoint ^ triggerPoint, bool trackCaret);
public:
 Microsoft::VisualStudio::Language::Intellisense::ICompletionSession ^ TriggerCompletion(Microsoft::VisualStudio::Text::Editor::ITextView ^ textView, Microsoft::VisualStudio::Text::ITrackingPoint ^ triggerPoint, bool trackCaret);
Microsoft::VisualStudio::Language::Intellisense::ICompletionSession TriggerCompletion(Microsoft::VisualStudio::Text::Editor::ITextView const & textView, Microsoft::VisualStudio::Text::ITrackingPoint const & triggerPoint, bool trackCaret);
public Microsoft.VisualStudio.Language.Intellisense.ICompletionSession TriggerCompletion (Microsoft.VisualStudio.Text.Editor.ITextView textView, Microsoft.VisualStudio.Text.ITrackingPoint triggerPoint, bool trackCaret);
abstract member TriggerCompletion : Microsoft.VisualStudio.Text.Editor.ITextView * Microsoft.VisualStudio.Text.ITrackingPoint * bool -> Microsoft.VisualStudio.Language.Intellisense.ICompletionSession
Public Function TriggerCompletion (textView As ITextView, triggerPoint As ITrackingPoint, trackCaret As Boolean) As ICompletionSession

Parameters

textView
ITextView

The ITextView over which to trigger statement completion.

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

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.

Applies to