ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / TimeTrack Class
Members Example

In This Topic
    TimeTrack Class
    In This Topic
    A track containing a collection of TimeKeyframe objects that defines the map time during the animation.
    Object Model
    TimeTrack ClassKeyframe Class
    Syntax
    public sealed class TimeTrack : Track 
    Public NotInheritable Class TimeTrack 
       Inherits Track
    Example
    Create Time Keyframe
    public void CreateTimeKeyframe(TimeSpan atTime)
    {
      var mapView = MapView.Active;
      if (mapView != null)
        return;
    
      var animation = mapView.Map.Animation;
      var timeTrack = animation.Tracks.OfType<TimeTrack>().First(); //There will always be only 1 TimeTrack in the animation.
      timeTrack.CreateKeyframe(mapView.Time, atTime, ArcGIS.Core.CIM.AnimationTransition.Linear);
    }
    Inheritance Hierarchy

    System.Object
       ArcGIS.Desktop.Mapping.Track
          ArcGIS.Desktop.Mapping.TimeTrack

    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also