Compartilhar via


MethodData.Refresh(IVsTextView, Methods, Int32, TextSpan) Method

Definition

Displays the method tip with the given method signatures.

public:
 void Refresh(Microsoft::VisualStudio::TextManager::Interop::IVsTextView ^ textView, Microsoft::VisualStudio::Package::Methods ^ methods, int currentParameter, Microsoft::VisualStudio::TextManager::Interop::TextSpan context);
public:
 void Refresh(Microsoft::VisualStudio::TextManager::Interop::IVsTextView ^ textView, Microsoft::VisualStudio::Package::Methods ^ methods, int currentParameter, Microsoft::VisualStudio::TextManager::Interop::TextSpan context);
void Refresh(Microsoft::VisualStudio::TextManager::Interop::IVsTextView const & textView, Microsoft::VisualStudio::Package::Methods const & methods, int currentParameter, Microsoft::VisualStudio::TextManager::Interop::TextSpan context);
public void Refresh (Microsoft.VisualStudio.TextManager.Interop.IVsTextView textView, Microsoft.VisualStudio.Package.Methods methods, int currentParameter, Microsoft.VisualStudio.TextManager.Interop.TextSpan context);
member this.Refresh : Microsoft.VisualStudio.TextManager.Interop.IVsTextView * Microsoft.VisualStudio.Package.Methods * int * Microsoft.VisualStudio.TextManager.Interop.TextSpan -> unit
Public Sub Refresh (textView As IVsTextView, methods As Methods, currentParameter As Integer, context As TextSpan)

Parameters

textView
IVsTextView

[in] An IVsTextView object representing the view that displays the method tip.

methods
Methods

[in] A Methods object representing the method signatures to be displayed.

currentParameter
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
TextSpan

[in] A TextSpan object specifying the initial span containing the method name that has already been typed.

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.

Applies to