ArcGIS Pro 3.8 API Reference Guide
ArcGIS.Desktop.Presentations Namespace / PresentationView Class / ActivePage Property
Example

In This Topic
    ActivePage Property
    In This Topic
    Gets the presentation page that is displayed in the view.
    Syntax
    public PresentationPage ActivePage {get;}
    Public ReadOnly Property ActivePage As PresentationPage
    Example
    Activate a map page
    {
      // Note: we are on the UI thread!
      // A presentation view must be active
      if (PresentationView.Active == null)
      {
        return;
      }
    
      PresentationPage currentActivePage = activePresentationView.ActivePage;
    
      //check if the current page is a map page
      if (activePage is MapPresentationPage)
      {
        await activePresentationView.ActivateMapPageAsync();
      }
    
      await QueuedTask.Run(() =>
      {
        // TODO
      });
    }
    Requirements

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

    ArcGIS Pro version: 3.5 or higher.
    See Also