Source.MethodTip Method
Displays an IntelliSense method tip showing a method's signature as it is entered.
Namespace: Microsoft.VisualStudio.Package
Assemblies: Microsoft.VisualStudio.Package.LanguageService.12.0 (in Microsoft.VisualStudio.Package.LanguageService.12.0.dll)
Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Syntax
'Declaration
Public Overridable Sub MethodTip ( _
textView As IVsTextView, _
line As Integer, _
index As Integer, _
info As TokenInfo _
)
public virtual void MethodTip(
IVsTextView textView,
int line,
int index,
TokenInfo info
)
public:
virtual void MethodTip(
IVsTextView^ textView,
int line,
int index,
TokenInfo^ info
)
abstract MethodTip :
textView:IVsTextView *
line:int *
index:int *
info:TokenInfo -> unit
override MethodTip :
textView:IVsTextView *
line:int *
index:int *
info:TokenInfo -> unit
public function MethodTip(
textView : IVsTextView,
line : int,
index : int,
info : TokenInfo
)
Parameters
textView
Type: Microsoft.VisualStudio.TextManager.Interop.IVsTextViewAn IVsTextView object representing the view containing the source file.
line
Type: Int32The line number where the user is entering text.
index
Type: Int32The offset into the line where the user is entering text.
info
Type: Microsoft.VisualStudio.Package.TokenInfoA TokenInfo object representing the token that triggered the method tip (typically, this is the parameter list start character, end character, or parameter separator character).
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 IntelliSense Parameter Info (Managed Package Framework) for details on how the IntelliSense Method Tip feature can be supported in a language service.
.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.
See Also
Reference
Microsoft.VisualStudio.Package Namespace