ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Layouts Namespace / SpatialMapSeries Class / PageNumberField Property
Example

In This Topic
    PageNumberField Property
    In This Topic
    Gets or sets the index layer's page number field.
    Syntax
    Public Property PageNumberField As String
    public string PageNumberField {get; set;}

    Property Value

    Type: String
    Remarks
    Optional. If not set, automatic page numbering is applied. You can offset the starting value using the StartingPageNumber property. The page number field can be string defined to include page numbers like roman numerals, for example.
    Example
    Modify an existing map series
    {
      //Modify the currently active map series and changes its sort field and page number field.
      //Note: Must be on QueuedTask.Run
      SpatialMapSeries SMS = layout.MapSeries as SpatialMapSeries; //cast as spatial map series for additional members
      SMS.SortField = "State_Name";
      SMS.SortAscending = true;
      SMS.PageNumberField = "PageNum";
    
      //Overwrite the current map series with these new settings
      layout.SetMapSeries(SMS);
    }
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also