共用方式為


Source.MethodTip(IVsTextView, Int32, Int32, TokenInfo) Method

Definition

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

public:
 virtual void MethodTip(Microsoft::VisualStudio::TextManager::Interop::IVsTextView ^ textView, int line, int index, Microsoft::VisualStudio::Package::TokenInfo ^ info);
 virtual void MethodTip(Microsoft::VisualStudio::TextManager::Interop::IVsTextView const & textView, int line, int index, Microsoft::VisualStudio::Package::TokenInfo const & info);
public virtual void MethodTip (Microsoft.VisualStudio.TextManager.Interop.IVsTextView textView, int line, int index, Microsoft.VisualStudio.Package.TokenInfo info);
abstract member MethodTip : Microsoft.VisualStudio.TextManager.Interop.IVsTextView * int * int * Microsoft.VisualStudio.Package.TokenInfo -> unit
override this.MethodTip : Microsoft.VisualStudio.TextManager.Interop.IVsTextView * int * int * Microsoft.VisualStudio.Package.TokenInfo -> unit
Public Overridable Sub MethodTip (textView As IVsTextView, line As Integer, index As Integer, info As TokenInfo)

Parameters

textView
IVsTextView

An IVsTextView object representing the view containing the source file.

line
Int32

The line number where the user is entering text.

index
Int32

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

info
TokenInfo

A 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 Parameter Info in a Legacy Language Service for details on how the IntelliSense Method Tip feature can be supported in a language service.

Applies to