ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Desktop.Layouts Namespace / SpatialMapSeries Class / CurrentRow Property
Example

In This Topic
    CurrentRow Property
    In This Topic
    Returns the index layer's row for the current map series page. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public Row CurrentRow {get;}
    Public ReadOnly Property CurrentRow As Row

    Property Value

    Type: Row
    Exceptions
    ExceptionDescription
    This method must be called within the lambda passed to QueuedTask.Run.
    Example
    MapSeries_FindPageNumber
    //Return the page number that corresponds to the page name field for an index feature
    
    Layout layout = LayoutView.Active.Layout;
    
    //Perform on the worker thread
    await QueuedTask.Run(() =>
    {
      SpatialMapSeries SMS = layout.MapSeries as SpatialMapSeries;
      Row msRow = SMS.CurrentRow;
      System.Windows.MessageBox.Show(SMS.FindPageNumber(msRow.GetOriginalValue(msRow.FindField("NAME")).ToString()));
    });
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also