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 中引入)

适用于