共用方式為


ScrollPresenter.AddScrollVelocity(Vector2, IReference<Vector2>) 方法

定義

以異步方式將速度新增至卷動動作。

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

參數

offsetsVelocity
Vector2 Vector2

float2

捲動位移的速率變更。

inertiaDecayRate

IReference<Vector2>

Nullable<Vector2>

IReference<float2>

慣性衰減率。

傳回

Int32

int

用來建立這個方法呼叫與對應事件的關聯標識碼。

適用於