Dela via


MapControl.TryPanAsync(Double, Double) Method

Definition

Starts an asynchronous operation to pan the map from its current position.

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)

Parameters

horizontalPixels
Double

double

The pixels to pan horizontally.

verticalPixels
Double

double

The pixels to pan vertically.

Returns

Contains the results of the operation: true if the operation completed successfully; otherwise, false.

Attributes

Windows requirements

Device family
Windows 10 Creators Update (introduced in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v4.0)

Applies to