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); }
System.Object
ArcGIS.Desktop.Mapping.Track
ArcGIS.Desktop.Mapping.RangeTrack
Target Platforms: Windows 11, Windows 10, Windows 8.1