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


IPageLayoutControlDefault.Extent Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Controls > ESRI ArcGIS Controls > Interfaces > IP > IPageLayoutControlDefault Interface > IPageLayoutControlDefault.Extent Property
ArcGIS Developer Help

IPageLayoutControlDefault.Extent Property

Current extent of the PageLayout in page units.

[Visual Basic .NET]
Public Property Extent As IEnvelope
[C#]
public IEnvelope Extent {get; set;}
[C++]
HRESULT get_Extent(
void
);
[C++]
HRESULT put_Extent(
);

Product Availability

Available with ArcGIS Engine.

Description

Returns or sets a new envelope which is represents the visible extent of the PageLayout. Setting the Extent property will automatically cause the PageLayoutControl to refresh its display.

[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()

See Also

IPageLayoutControlDefault Interface