ArcGIS Pro 3.7 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 Overloads Function CreatePresentation() As Presentation
    public Presentation CreatePresentation()
    Remarks
    To open a presentation, use ProApp.Panes.CreatePresentationPaneAsync method.
    Example
    Create presentation
    {
      //Note: Must be in 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