共用方式為


ScrollViewer.ZoomToFactor(Single) 方法

定義

注意

ZoomToFactor 可能會在Windows 8.1之後變更或無法使用。 請改用 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的目前值影響。

屬性

適用於