ArcObjects Library Reference (Controls)  

IPageLayoutControlEvents.OnPageSizeChanged Event

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

[Visual Basic 6.0]
Event OnPageSizeChanged As Empty
[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