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)
Syntax
'Declaration
Function TriggerCompletion ( _
textView As ITextView, _
triggerPoint As ITrackingPoint, _
trackCaret As Boolean _
) As ICompletionSession
ICompletionSession TriggerCompletion(
ITextView textView,
ITrackingPoint triggerPoint,
bool trackCaret
)
ICompletionSession^ TriggerCompletion(
ITextView^ textView,
ITrackingPoint^ triggerPoint,
bool trackCaret
)
abstract TriggerCompletion :
textView:ITextView *
triggerPoint:ITrackingPoint *
trackCaret:bool -> ICompletionSession
function TriggerCompletion(
textView : ITextView,
triggerPoint : ITrackingPoint,
trackCaret : boolean
) : ICompletionSession
Parameters
textView
Type: Microsoft.VisualStudio.Text.Editor.ITextViewThe ITextView over which to trigger statement completion.
triggerPoint
Type: Microsoft.VisualStudio.Text.ITrackingPointThe point in the text buffer at which statement completion is requested.
trackCaret
Type: Booleantrue 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 nulla null reference (Nothing in Visual Basic) 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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.