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

用于将此方法调用与相应事件关联的关联 ID 号。

适用于