次の方法で共有


MethodData.Refresh Method

Displays the method tip with the given method signatures.

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.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

'宣言
Public Sub Refresh ( _
    textView As IVsTextView, _
    methods As Methods, _
    currentParameter As Integer, _
    context As TextSpan _
)
'使用
Dim instance As MethodData
Dim textView As IVsTextView
Dim methods As Methods
Dim currentParameter As Integer
Dim context As TextSpan

instance.Refresh(textView, methods, currentParameter, _
    context)
public void Refresh(
    IVsTextView textView,
    Methods methods,
    int currentParameter,
    TextSpan context
)
public:
void Refresh(
    IVsTextView^ textView, 
    Methods^ methods, 
    int currentParameter, 
    TextSpan context
)
member Refresh : 
        textView:IVsTextView * 
        methods:Methods * 
        currentParameter:int * 
        context:TextSpan -> unit 
public function Refresh(
    textView : IVsTextView, 
    methods : Methods, 
    currentParameter : int, 
    context : TextSpan
)

Parameters

  • currentParameter
    Type: System.Int32
    [in] The parameter to be highlighted initially. Set this to -1 to start before the first parameter. This value is typically determined by parsing what the user has typed so far since the start of the parameter list.

Remarks

This method is used to initialize and show the method tip. Any previous contents are immediately replaced.

This method is typically called when a parse reason of MethodTip returns a MethodTip trigger and the call is typically made indirectly from the MethodTip method in the Source class (the call to this method is actually performed in the handler that is passed to the parser by the MethodTip method).

This method caches the IVsTextView, Methods, and TextSpan objects. It then sets the internal parameter index to the specified parameter index and calls the AdjustCurrentParameter method with an increment of 0 to update the tool tip display.

.NET Framework Security

See Also

Reference

MethodData Class

MethodData Members

Microsoft.VisualStudio.Package Namespace