Bagikan melalui


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

Definisi

Secara asinkron menambahkan kecepatan ke tindakan gulir.

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

Parameter

offsetsVelocity
Vector2 Vector2

float2

Laju perubahan offset gulir.

inertiaDecayRate

IReference<Vector2>

Nullable<Vector2>

IReference<float2>

Tingkat pembuangan inertia.

Mengembalikan

Int32

int

Nomor ID korelasi yang digunakan untuk mengaitkan panggilan metode ini dengan peristiwa yang sesuai.

Berlaku untuk