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


IPageLayoutControlDefault.FullExtent 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.FullExtent Property
ArcGIS Developer Help

IPageLayoutControlDefault.FullExtent Property

Rectangular shape that encloses the PageLayout.

[Visual Basic .NET]
Public Property FullExtent As IEnvelope
[C#]
public IEnvelope FullExtent {get; set;}
[C++]
HRESULT get_FullExtent(
void
);
[C++]
HRESULT put_FullExtent(
);

Product Availability

Available with ArcGIS Engine.

Description

Returns or sets an envelope object which by default is the PageLayout's page size expanded by a factor of 1.9 and which is automatically set whenever the page size changes. Setting the FullExtent triggers the IPageLayoutControlEvents::OnFullExtentUpated event.

Remarks

The FullExtent property is a shortcut to IActiveView::FullExtent which is in turn a shortcut to IDisplayTransformation::Bounds. Setting the FullExtent property will not affect the Extent property.

[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