Compartilhar via


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

  • trackCaret
    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 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

See Also

Reference

ICompletionBroker Interface

TriggerCompletion Overload

Microsoft.VisualStudio.Language.Intellisense Namespace