ArcGIS Pro 2.9 API Reference Guide
LayoutClosingEvent Class
Members  Example 

ArcGIS.Desktop.Layouts.Events Namespace : LayoutClosingEvent Class
Occurs when the Layout is closing.
Object Model
LayoutClosingEvent ClassSubscriptionToken ClassSubscriptionToken Class
Syntax
Remarks
Reference LayoutClosingEventArgs to get a list of arguments.
Example
//Report the event args when a layout is closing.

ArcGIS.Desktop.Layouts.Events.LayoutClosingEvent.Subscribe((args) =>
{
  System.Windows.MessageBox.Show("LayoutClosingEvent:" +
  Environment.NewLine +
  "   arg Layout: " + args.Layout.Name +
  Environment.NewLine +
  "   arg LayoutPane: " + args.LayoutPane.Caption);
});
Inheritance Hierarchy

System.Object
   ArcGIS.Core.Events.EventBase
      ArcGIS.Core.Events.CompositePresentationEvent<TPayload>
         ArcGIS.Desktop.Layouts.Events.LayoutClosingEvent

Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

See Also

Reference

LayoutClosingEvent Members
ArcGIS.Desktop.Layouts.Events Namespace