MethodData::Refresh Method (IVsTextView^, Methods^, Int32, TextSpan)
Displays the method tip with the given method signatures.
Assembly: Microsoft.VisualStudio.Package.LanguageService.14.0 (in Microsoft.VisualStudio.Package.LanguageService.14.0.dll)
public: void Refresh( IVsTextView^ textView, Methods^ methods, int currentParameter, TextSpan context )
Parameters
- textView
-
Type:
Microsoft.VisualStudio.TextManager.Interop::IVsTextView^
[in] An IVsTextView object representing the view that displays the method tip.
- methods
-
Type:
Microsoft.VisualStudio.Package::Methods^
[in] A Methods object representing the method signatures to be displayed.
- 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.
- context
-
Type:
Microsoft.VisualStudio.TextManager.Interop::TextSpan
[in] A TextSpan object specifying the initial span containing the method name that has already been typed.
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.