Show / Hide Table of Contents

Method SetViewpointAsync

SetViewpointAsync(Viewpoint, TimeSpan, AnimationCurve)

Pans or zooms the local scene view using animation to the specified viewpoint location asynchronously. The animation takes place over the specified duration. The animation curve defines the animation easing function.

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

The viewpoint that should be set on the local scene view.

TimeSpan duration

The amount of time to move to the new viewpoint.

AnimationCurve curve

The type of animation curve.

Returns
Type Description
Task<bool>

true if the viewpoint was successfully set, false otherwise.

Applies to

Platforms and versions
TargetVersions
.NET Windows300
In this article
Provide feedback
Back to top Copyright © 2025 Esri.