This document is archived and information here might be outdated.  Recommended version.


IPageLayoutControlEvents.OnPageLayoutReplaced Event (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Controls > ESRI ArcGIS Controls > Interfaces > IP > IPageLayoutControlEvents Interface > IPageLayoutControlEvents.OnPageLayoutReplaced Event
ArcGIS Developer Help

IPageLayoutControlEvents.OnPageLayoutReplaced Event

Fires after the PageLayout object used by the PageLayoutControl has been replaced.

[Visual Basic .NET]
Public Event OnPageLayoutReplaced As OnPageLayoutReplacedEventHandler
[C#]
public event OnPageLayoutReplacedEventHandler OnPageLayoutReplaced
[C++]
HRESULT OnPageLayoutReplaced(
  VARIANT newPageLayout
);
[C++]
Parameters
newPageLayout [in]

newPageLayout is a parameter of type VARIANT

Product Availability

Available with ArcGIS Engine.

Description

The OnPageLayoutReplaced event is triggered whenever the IPageLayoutControl::PageLayout is replaced by another PageLayout, such as when the IPageLayoutControl::LoadMxFile method is used or when the PageLayout property is explicitly replaced. Use this event to keep in synch with the current IPageLayoutControl::PageLayout

See Also

IPageLayoutControlEvents Interface