ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / MapView Class / Time Property
Example

In This Topic
    Time Property (MapView)
    In This Topic
    Gets or sets the time range visible in the map view.
    Syntax
    Public Property Time As TimeRange
    public TimeRange Time {get; set;}
    Remarks
    This property is null when there are no time aware layers in the map. When the Time property is not null, but both the Start and End properties of the TimeRange are null this means the map view is showing all time. This is equivalent to disabling time in the map view. Setting this property to null when there are time aware layers in the map will set both the start and end properties of the TimeRange to null.
    Example
    Step forward in time by 1 month
    {
      //Step current map time forward by 1 month
      TimeDelta timeDelta = new(1, TimeUnit.Months);
      mapView.Time = mapView.Time.Offset(timeDelta);
    }
    Disable time in the map.
    {
      MapView.Active.Time.Start = null;
      MapView.Active.Time.End = null;
    }
    Requirements

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

    ArcGIS Pro version: 3.0 or higher.
    See Also