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
);
Product Availability
Available with ArcGIS Engine.
Description
The method is based upon the IPageLayout::ZoomToWhole method.
Errors Returned
1013 800a03f5: The LayerOrElement parameter does not contain a valid object
1014 800a03f6: The envelope parameter does not contain an object that supports IEnvelope
[C#]
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();
[Visual Basic .NET]
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()