共用方式為


MethodData.AdjustCurrentParameter(Int32) Method

Definition

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

public:
 void AdjustCurrentParameter(int increment);
public:
 void AdjustCurrentParameter(int increment);
void AdjustCurrentParameter(int increment);
public void AdjustCurrentParameter (int increment);
member this.AdjustCurrentParameter : int -> unit
Public Sub AdjustCurrentParameter (increment As Integer)

Parameters

increment
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.

Applies to