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


IPageLayoutControlEvents.OnPageSizeChanged Event (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Controls)  

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