ArcGIS Pro 3.8 API Reference Guide
ArcGIS.Desktop.Presentations Namespace / IPresentationFactory Interface / 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
    Presentation CreatePresentation()
    Overloads Function CreatePresentation() As Presentation
    Remarks
    To open a presentation, use ProApp.Panes.CreatePresentationPaneAsync method.
    Example
    Create presentation
    {
      await QueuedTask.Run(() =>
      {
        //Create a new presentation without parameters
        var presentationNew = PresentationFactory.Instance.CreatePresentation();
        // Use the new Presentation
    
        // Create a presentation specifying the name of the new presentation
        var presentationSpecifyName = PresentationFactory.Instance.CreatePresentation("New Presentation");
        // Use the new Presentation
      });
    }
    Requirements

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

    ArcGIS Pro version: 3.5 or higher.
    See Also