ArcGIS Pro 3.2 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
    public sealed class TimeTrack : Track 
    Public NotInheritable Class TimeTrack 
       Inherits Track
    Create Time Keyframe
    public void CreateTimeKeyframe(TimeSpan atTime)
      var mapView = MapView.Active;
      if (mapView != null)
      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



    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also