ArcGIS Pro 3.5 API Reference Guide
ArcGIS.Desktop.Presentations Namespace / PresentationFactory Class / CreatePresentation Method / CreatePresentation() Method
Example

In This Topic
    CreatePresentation() Method
    In This Topic
    Creates a new empty presentation item and adds it to a project. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public Presentation CreatePresentation()
    Public Overloads Function CreatePresentation() As Presentation
    Remarks
    To open a presentation, use ProApp.Panes.CreatePresentationPaneAsync method.
    Example
    Create presentation
    //Note: Call within QueuedTask.Run()
    await QueuedTask.Run(() =>
    {
      //Create a new presentation without parameters
      var presentation = PresentationFactory.Instance.CreatePresentation();
      // Use the new Presentation
    
      // Create a presentation specifying the name of the new presentation
      presentation = PresentationFactory.Instance.CreatePresentation("New Presentation");
      // Use the new Presentation
    });
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.5 or higher.
    See Also