ArcGIS Pro 3.1 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
    Syntax
    public sealed class RangeTrack : Track 
    Public NotInheritable Class RangeTrack 
       Inherits Track
    Example
    Create Range Keyframe
    public void CreateRangeKeyframe(ArcGIS.Desktop.Mapping.Range range, TimeSpan atTime)
    {
      var mapView = MapView.Active;
      if (mapView != null)
        return;
    
      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

    System.Object
       ArcGIS.Desktop.Mapping.Track
          ArcGIS.Desktop.Mapping.RangeTrack

    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.0 or higher.
    See Also