Source.MethodTip Method

Displays an IntelliSense method tip showing a method's signature as it is entered.

Namespace:  Microsoft.VisualStudio.Package
Assembly:  Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)

Syntax

'宣言
Public Overridable Sub MethodTip ( _
    textView As IVsTextView, _
    line As Integer, _
    index As Integer, _
    info As TokenInfo _
)
'使用
Dim instance As Source
Dim textView As IVsTextView
Dim line As Integer
Dim index As Integer
Dim info As TokenInfo

instance.MethodTip(textView, line, index, _
    info)
public virtual void MethodTip(
    IVsTextView textView,
    int line,
    int index,
    TokenInfo info
)
public:
virtual void MethodTip(
    IVsTextView^ textView, 
    int line, 
    int index, 
    TokenInfo^ info
)
public function MethodTip(
    textView : IVsTextView, 
    line : int, 
    index : int, 
    info : TokenInfo
)

Parameters

  • line
    Type: System.Int32

    The line number where the user is entering text.

  • index
    Type: System.Int32

    The offset into the line where the user is entering text.

Remarks

This method displays the method tip and updates the text on the tip based on what the user has typed so far.

The base method executes a parse at the given location with the reason MethodTip. A list of overloaded methods matching the method name is created from the parse and these are displayed in the tool tip by calling the Refresh method. If any error occurs, the tool tip is immediately dismissed.

See Supporting IntelliSense Parameter Info (Managed Package Framework) for details on how the IntelliSense Method Tip feature can be supported in a language service.

Permissions

See Also

Concepts

Supporting IntelliSense Parameter Info (Managed Package Framework)

Reference

Source Class

Source Members

Microsoft.VisualStudio.Package Namespace