ScrollView.ZoomTo 方法

定义

重载

ZoomTo(Single, IReference<Vector2>)

异步缩放到指定的缩放因子,并启用动画并贴靠点。

ZoomTo(Single, IReference<Vector2>, ScrollingZoomOptions)

使用指定的动画和对齐点模式异步缩放到指定的缩放因子。

ZoomTo(Single, IReference<Vector2>)

异步缩放到指定的缩放因子,并启用动画并贴靠点。

public:
 virtual int ZoomTo(float zoomFactor, IReference<float2> ^ centerPoint) = ZoomTo;
/// [Windows.Foundation.Metadata.Overload("ZoomTo")]
int ZoomTo(float const& zoomFactor, IReference<float2> const& centerPoint);
[Windows.Foundation.Metadata.Overload("ZoomTo")]
public int ZoomTo(float zoomFactor, System.Nullable<Vector2> centerPoint);
function zoomTo(zoomFactor, centerPoint)
Public Function ZoomTo (zoomFactor As Single, centerPoint As Nullable(Of Vector2)) As Integer

参数

zoomFactor
Single

float

缩放内容的数量。

centerPoint

IReference<Vector2>

Nullable<Vector2>

IReference<float2>

缩放因子的中心点会发生变化。

返回

Int32

int

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

属性

适用于

ZoomTo(Single, IReference<Vector2>, ScrollingZoomOptions)

使用指定的动画和对齐点模式异步缩放到指定的缩放因子。

/// [Windows.Foundation.Metadata.Overload("ZoomToWithOptions")]
int ZoomTo(float const& zoomFactor, IReference<float2> const& centerPoint, ScrollingZoomOptions const& options);
[Windows.Foundation.Metadata.Overload("ZoomToWithOptions")]
public int ZoomTo(float zoomFactor, System.Nullable<Vector2> centerPoint, ScrollingZoomOptions options);
function zoomTo(zoomFactor, centerPoint, options)
Public Function ZoomTo (zoomFactor As Single, centerPoint As Nullable(Of Vector2), options As ScrollingZoomOptions) As Integer

参数

zoomFactor
Single

float

缩放内容的数量。

centerPoint

IReference<Vector2>

Nullable<Vector2>

IReference<float2>

缩放因子的中心点会发生变化。

options
ScrollingZoomOptions

指定是否启用动画和对齐点的选项。

返回

Int32

int

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

属性

适用于