ScrollViewer.ZoomToFactor(Single) 方法

定义

注意

Windows 8.1后,ZoomToFactor 可能会更改或不可用。 请改用 ChangeView

设置 ZoomFactor 的有效值。

public:
 virtual void ZoomToFactor(float factor) = ZoomToFactor;
/// [Windows.Foundation.Metadata.Deprecated("ZoomToFactor may be altered or unavailable for releases after Windows 8.1. Instead, use ChangeView.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.Foundation.UniversalApiContract)]
void ZoomToFactor(float const& factor);
/// [Windows.Foundation.Metadata.Deprecated("ZoomToFactor may be altered or unavailable for releases after Windows 8.1. Instead, use ChangeView.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
void ZoomToFactor(float const& factor);
[Windows.Foundation.Metadata.Deprecated("ZoomToFactor may be altered or unavailable for releases after Windows 8.1. Instead, use ChangeView.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.Foundation.UniversalApiContract))]
public void ZoomToFactor(float factor);
[Windows.Foundation.Metadata.Deprecated("ZoomToFactor may be altered or unavailable for releases after Windows 8.1. Instead, use ChangeView.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
public void ZoomToFactor(float factor);
function zoomToFactor(factor)
Public Sub ZoomToFactor (factor As Single)

参数

factor
Single

float

要设置的缩放因子。 因子基于 1.0 的规范,表示未应用缩放。 可以设置的值也受 MinZoomFactorMaxZoomFactor 的当前值的影响。

属性

适用于