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


IPageLayoutControlEvents.OnPageSizeChanged 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.OnPageSizeChanged Event
ArcGIS Developer Help

IPageLayoutControlEvents.OnPageSizeChanged Event

Fires when the Page associated with the PageLayout has had its size changed.

[Visual Basic .NET]
Public Event OnPageSizeChanged As OnPageSizeChangedEventHandler
[C#]
public event OnPageSizeChangedEventHandler OnPageSizeChanged
[C++]
HRESULT OnPageSizeChanged(
void
);

Product Availability

Available with ArcGIS Engine.

Description

This event is a shortcut to the IPageEvents::PageSizeChanged event and is triggered whenever the page size of the IPageLayoutControl::Page changes.

[C#]
//Landscape
axPageLayoutControl1.Page.Orientation = 2;     
//A3
axPageLayoutControl1.Page.FormID = esriPageFormID.esriPageFormA3;
[Visual Basic .NET]
'Landscape
AxPageLayoutControl1.Page.Orientation = 2      
'A3    
AxPageLayoutControl1.Page.FormID = esriPageFormID.esriPageFormA3  

See Also

IPageLayoutControlEvents Interface