ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Reports Namespace / Report Class / AddLayoutPage Method / AddLayoutPage(Item,Int32) Method
The layout item.
Position to add layout page. If -1, the layout page is added to the end of the report. If 0, the layout page is added to the beginning of the report.

In This Topic
    AddLayoutPage(Item,Int32) Method
    In This Topic
    Adds a layout page section to the report. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public void AddLayoutPage( 
       Item layoutItem,
       int insertIndex
    )
    Public Overloads Sub AddLayoutPage( _
       ByVal layoutItem As Item, _
       ByVal insertIndex As Integer _
    ) 

    Parameters

    layoutItem
    The layout item.
    insertIndex
    Position to add layout page. If -1, the layout page is added to the end of the report. If 0, the layout page is added to the beginning of the report.
    Exceptions
    ExceptionDescription
    This method or property must be called within the lambda passed to QueuedTask.Run.
    The layoutItem is invalid.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.1 or higher.
    See Also