ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / RangeTrack Class
Members Example

In This Topic
    RangeTrack Class
    In This Topic
    A track containing a collection of RangeKeyframe objects that defines the map range during the animation.
    Object Model
    RangeTrack ClassKeyframe Class
    public sealed class RangeTrack : Track 
    Public NotInheritable Class RangeTrack 
       Inherits Track
    Create Range Keyframe
    public void CreateRangeKeyframe(ArcGIS.Desktop.Mapping.Range range, TimeSpan atTime)
      var mapView = MapView.Active;
      if (mapView != null)
      var animation = mapView.Map.Animation;
      var rangeTrack = animation.Tracks.OfType<RangeTrack>().First(); //There will always be only 1 RangeTrack in the animation.
      rangeTrack.CreateKeyframe(range, atTime, ArcGIS.Core.CIM.AnimationTransition.Linear);
    Inheritance Hierarchy



    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also