ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Presentations.Events Namespace / PresentationEventHint Enumeration
Example Example

In This Topic
    PresentationEventHint Enumeration
    In This Topic
    Specifies the type of presentation event hints.
    Syntax
    Members
    MemberDescription
    PageAdded One or more pages have been added
    PageMoved One or more pages have been moved
    PageRemoved One or more pages have been removed
    PageSettingChanged Page settings have changed
    PropertyChanged One or more page properties have changed
    Example
    Detect changes to the presentation
    {
      ArcGIS.Desktop.Presentations.Events.PresentationEvent.Subscribe((args) =>
      {
        var presentation = args.Presentation; //The presentation that was changed
    
        //Check what triggered the event and take appropriate action
        switch (args.Hint)
        {
          case PresentationEventHint.PropertyChanged:
            //TODO handle presentation property changed
            break;
          case PresentationEventHint.PageAdded:
            //TODO handle a new page added
            break;
          case PresentationEventHint.PageRemoved:
            //TODO handle a page removed from the presentation
            break;
          case PresentationEventHint.PageSettingChanged:
            //TODO handle page settings changed
            break;
        }
      });
    }
    Inheritance Hierarchy

    System.Object
       System.ValueType
          System.Enum
             ArcGIS.Desktop.Presentations.Events.PresentationEventHint

    Requirements

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

    ArcGIS Pro version: 3.5 or higher.
    See Also