共用方式為


ScrollPresenter.AddZoomVelocity 方法

定義

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

public:
 virtual int AddZoomVelocity(float zoomFactorVelocity, IReference<float2> ^ centerPoint, IReference<float> ^ inertiaDecayRate) = AddZoomVelocity;
int AddZoomVelocity(float const& zoomFactorVelocity, IReference<float2> const& centerPoint, IReference<float> const& inertiaDecayRate);
public int AddZoomVelocity(float zoomFactorVelocity, System.Nullable<Vector2> centerPoint, System.Nullable<float> inertiaDecayRate);
function addZoomVelocity(zoomFactorVelocity, centerPoint, inertiaDecayRate)
Public Function AddZoomVelocity (zoomFactorVelocity As Single, centerPoint As Nullable(Of Vector2), inertiaDecayRate As Nullable(Of Single)) As Integer

參數

zoomFactorVelocity
Single

float

縮放因數的速率變更。

centerPoint

IReference<Vector2>

Nullable<Vector2>

IReference<float2>

縮放因數的中心點會變更。

inertiaDecayRate

IReference<Single>

Nullable<Single>

IReference<float>

慣性的衰減率。

傳回

Int32

int

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

適用於