ArcGIS Pro 3.5 API Reference Guide
ArcGIS.Desktop.Presentations Namespace / Presentation Class / AddBlankPage Method
The blank page template type
The insert position. If -1, the page is added to the end of the page collection. If 0, the page is added to the beginning of the page collection.
Example

In This Topic
    AddBlankPage Method
    In This Topic
    Adds a new blank page to the presentation. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax

    Parameters

    templateType
    The blank page template type
    insertIndex
    The insert position. If -1, the page is added to the end of the page collection. If 0, the page is added to the beginning of the page collection.

    Return Value

    Exceptions
    ExceptionDescription
    This method must be called within the lambda passed to QueuedTask.Run.
    Example
    Blank page
    //Note: Call within QueuedTask.Run()
    Presentation presentation = PresentationView.Active.Presentation;
    //Must be on QueuedTask
    await QueuedTask.Run(() =>
    {
      // add a blank page with with title and paragraph body text element
      presentation.AddBlankPage(BlankPageTemplateType.TitleAndParagraph, -1);
    });
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.5 or higher.
    See Also