ArcGIS Pro 3.5 API Reference Guide
ArcGIS.Desktop.Presentations Namespace / PresentationFactory Class
Members Example

In This Topic
    PresentationFactory Class
    In This Topic
    Provides methods to create new presentation project items.
    Object Model
    PresentationFactory ClassPresentation ClassPresentation ClassIPresentationFactory Interface
    Syntax
    public class PresentationFactory : IPresentationFactory  
    Public Class PresentationFactory 
       Implements IPresentationFactory 
    Remarks

    Creating a new presentation generates a new presentation project item that appears in the Presentation folder in the Contents pane.

    A new presentation project item is not automatically opened in a presentation view pane.

    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
    });
    Inheritance Hierarchy

    System.Object
       ArcGIS.Desktop.Presentations.PresentationFactory

    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.5 or higher.
    See Also