ArcGIS Pro 3.1 API Reference Guide
ArcGIS.Desktop.Layouts Namespace / MapSeries Class / SetCurrentPageNumber Method
A String value.
Example

In This Topic
    SetCurrentPageNumber Method
    In This Topic
    Sets the current map series page number. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public void SetCurrentPageNumber( 
       string pageNumber
    )
    Public Sub SetCurrentPageNumber( _
       ByVal pageNumber As String _
    ) 

    Parameters

    pageNumber
    A String value.
    Exceptions
    ExceptionDescription
    This method must be called within the lambda passed to QueuedTask.Run.
    Example
    MapSeries_SetCurrentPageNumber
    //Set the current page to match a specific page number
    
    //Perform on the worker thread
    await QueuedTask.Run(() =>
    {
      MapSeries MS = layout.MapSeries as MapSeries;
      MS.SetCurrentPageNumber("IV");
    });
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.0 or higher.
    See Also