Show / Hide Table of Contents

Method SetViewpointAsync

SetViewpointAsync(Viewpoint)

Pan or zoom the GeoView using animation to the specified Viewpoint location, asynchronously.

Declaration
public Task<bool> SetViewpointAsync(Viewpoint viewpoint)
Parameters
Type Name Description
Viewpoint viewpoint

Viewpoint object

Returns
Type Description
System.Threading.Tasks.Task<System.Boolean>

True if the set view animation completed, false if it was interrupted by another view navigation.

See Also
SetViewpoint(Viewpoint)

Applies to

Platforms and versions
TargetVersions
.NET Windows100.13 - 200.7

SetViewpointAsync(Viewpoint, TimeSpan)

Pan or zoom the GeoView using animation to the specified Viewpoint location. Animation takes place over the specified duration.

Declaration
public Task<bool> SetViewpointAsync(Viewpoint viewpoint, TimeSpan duration)
Parameters
Type Name Description
Viewpoint viewpoint

Viewpoint object

System.TimeSpan duration

The amount of time to move to the new viewpoint.

Returns
Type Description
System.Threading.Tasks.Task<System.Boolean>

True if the set view animation completed, false if it was interrupted by another view navigation.

See Also
SetViewpointAsync(Viewpoint)
SetViewpoint(Viewpoint)

Applies to

Platforms and versions
TargetVersions
.NET Windows100.13 - 200.7
In This Article
Back to top Copyright © 2022 Esri.