ArcGIS Pro 3.8 API Reference Guide
ArcGIS.Desktop.Presentations Namespace / IPresentationFactory Interface / CreatePresentation Method / CreatePresentation(String) Method
The name of the presentation.
Example

In This Topic
    CreatePresentation(String) Method
    In This Topic
    Creates a new presentation presentation with a customized name and adds it to a project. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    Presentation CreatePresentation( 
       string name
    )
    Overloads Function CreatePresentation( _
       ByVal name As String _
    ) As Presentation

    Parameters

    name
    The name of the 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