共用方式為


MethodData.AdjustCurrentParameter Method

Update the current parameter, either forward or backward, by the specified amount.

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.12.0 (in Microsoft.VisualStudio.Package.LanguageService.12.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.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 (in Microsoft.VisualStudio.Package.LanguageService.dll)

Syntax

'Declaration
Public Sub AdjustCurrentParameter ( _
    increment As Integer _
)
public void AdjustCurrentParameter(
    int increment
)
public:
void AdjustCurrentParameter(
    int increment
)
member AdjustCurrentParameter : 
        increment:int -> unit
public function AdjustCurrentParameter(
    increment : int
)

Parameters

  • increment
    Type: Int32

    [in] A value to add to the current parameter index. This is negative if the parameter index is to be decremented.

Remarks

As the user enters parameters, each parameter separator entered or passed over by the caret triggers a call to this method. This method updates the method tip to highlight the current parameter being entered.

This method makes sure the new value is not out of bounds by pinning it to the minimum (-1 to indicate before the first parameter) or maximum (the number of parameters to indicate after the last parameter) and then calls the UpdateView method to update the method tip.

.NET Framework Security

See Also

Reference

MethodData Class

Microsoft.VisualStudio.Package Namespace