Udostępnij za pośrednictwem


ScrollView.AddScrollVelocity(Vector2, IReference<Vector2>) Method

Definition

Asynchronously adds velocity to a scroll action.

public:
 virtual int AddScrollVelocity(float2 offsetsVelocity, IReference<float2> ^ inertiaDecayRate) = AddScrollVelocity;
int AddScrollVelocity(float2 const& offsetsVelocity, IReference<float2> const& inertiaDecayRate);
public int AddScrollVelocity(Vector2 offsetsVelocity, System.Nullable<Vector2> inertiaDecayRate);
function addScrollVelocity(offsetsVelocity, inertiaDecayRate)
Public Function AddScrollVelocity (offsetsVelocity As Vector2, inertiaDecayRate As Nullable(Of Vector2)) As Integer

Parameters

offsetsVelocity
Vector2 Vector2

float2

The rate of the scroll offset change.

inertiaDecayRate

IReference<Vector2>

Nullable<Vector2>

IReference<float2>

The decay rate of the inertia.

Returns

Int32

int

A correlation ID number used to associate this method call with corresponding events.

Applies to