ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / CameraKeyframe Class
Members Example

In This Topic
    CameraKeyframe Class
    In This Topic
    Represents a keyframe in the CameraTrack.
    Object Model
    CameraKeyframe ClassCamera Class
    Syntax
    Public NotInheritable Class CameraKeyframe 
       Inherits Keyframe
    public sealed class CameraKeyframe : Keyframe 
    Remarks
    The camera keyframe stores the value of the camera and defines the transitions for each of the values of the camera.
    Example
    Camera Keyframes
    {
      var animation = mapView.Map.Animation;
      var cameraTrack = animation.Tracks.OfType<CameraTrack>().First(); //There will always be only 1 CameraTrack in the animation.
      var result = cameraTrack.Keyframes.OfType<CameraKeyframe>().ToList();
      //Use the camera keyframes (if any)
    }
    Inheritance Hierarchy

    System.Object
       ArcGIS.Desktop.Mapping.Keyframe
          ArcGIS.Desktop.Mapping.CameraKeyframe

    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also