ArcGIS Pro 3.8 API Reference Guide
ArcGIS.Desktop.Presentations Namespace / VideoPresentationPage Class / SetEndTime Method
Example

In This Topic
    SetEndTime Method
    In This Topic
    Sets the page end time in seconds.
    Syntax
    public void SetEndTime( 
       double endTime
    )
    Public Sub SetEndTime( _
       ByVal endTime As Double _
    ) 

    Parameters

    endTime
    Remarks
    Customize the portion of the video appearing when the page is displayed by setting the start and end times of the video.
    Example
    Video page
    {
      // add a new video page in current active presentation
      var videoPage = presentation.AddVideoPage("my video file", -1);
    
      // change the image source
      videoPage.SetVideoSource("new video source");
    
      // change the start time of video to 3s
      videoPage.SetStartTime(3.0);
      // change the end time of video to 10s
      videoPage.SetEndTime(10.0);
    }
    Requirements

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

    ArcGIS Pro version: 3.5 or higher.
    See Also