This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Controls > ESRI ArcGIS Controls > Interfaces > IP > IPageLayoutControlDefault Interface > IPageLayoutControlDefault.ZoomToWholePage Method (ArcObjects .NET 10.4 SDK) |
Changes the extent of the PageLayout to show a whole page.
[Visual Basic .NET]
Public Sub ZoomToWholePage ( _
)
[C#] public void ZoomToWholePage ( );
[C++]
HRESULT ZoomToWholePage(
void
);
The method is based upon the IPageLayout::ZoomToWhole method.
1013 800a03f5: The LayerOrElement parameter does not contain a valid object
1014 800a03f6: The envelope parameter does not contain an object that supports IEnvelope
To set the Extent to view the whole of the PageLayout use one of the following:
//Set Extent to the whole Page expanded by a factor of 1.9
axPageLayoutControl1.Extent=axPageLayoutControl1.FullExtent;
//Set Extent to the whole Page
axPageLayoutControl1.ZoomToWholePage();
To set the Extent to view the whole of the PageLayout use one of the following:
'Set Extent to the whole Page expanded by a factor of 1.9
AxPageLayoutControl1.Extent=AxPageLayoutControl1.FullExtent
'Set Extent to the whole Page
AxPageLayoutControl1.ZoomToWholePage()