This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Controls > ESRI ArcGIS Controls > Interfaces > IP > IPageLayoutControl Interface > IPageLayoutControl.FullExtent Property (ArcObjects .NET 10.4 SDK) |
Rectangular shape that encloses the PageLayout.
[Visual Basic .NET] Public Property FullExtent As IEnvelope
[C#] public IEnvelope FullExtent {get; set;}
[C++]
HRESULT get_FullExtent(
IEnvelope** FullExtent
);
[C++]
HRESULT put_FullExtent(
IEnvelope* FullExtent
);
[C++]
Parameters FullExtent [out, retval]
FullExtent is a parameter of type IEnvelope FullExtent [in]
FullExtent is a parameter of type IEnvelope
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.
1015 800A03F7: The supplied envelope represents is an invalid extent
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.
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()