共用方式為


MapControl.TryPanAsync(Double, Double) 方法

定義

啟動非同步作業,以從目前的位置移動流覽地圖。

public:
 virtual IAsyncOperation<bool> ^ TryPanAsync(double horizontalPixels, double verticalPixels) = TryPanAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<bool> TryPanAsync(double const& horizontalPixels, double const& verticalPixels);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<bool> TryPanAsync(double horizontalPixels, double verticalPixels);
function tryPanAsync(horizontalPixels, verticalPixels)
Public Function TryPanAsync (horizontalPixels As Double, verticalPixels As Double) As IAsyncOperation(Of Boolean)

參數

horizontalPixels
Double

double

要水準移動流覽的圖元。

verticalPixels
Double

double

要垂直移動流覽的圖元。

傳回

包含作業的結果:如果作業順利完成,則為 true ;否則為 false

屬性

Windows 需求

裝置系列
Windows 10 Creators Update (已於 10.0.15063.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v4.0 引進)

適用於