ESRI.ArcGIS.ADF.IMS
FullExtent Property
See Also  Example Send Feedback
ESRI.ArcGIS.ADF.IMS.Carto Namespace > MapView Class : FullExtent Property




Gets the full extent of the map based on the full extent of the layers.

Syntax

Visual Basic (Declaration) 
Public ReadOnly Property FullExtent As Envelope
Visual Basic (Usage)Copy Code
Dim instance As MapView
Dim value As Envelope
 
value = instance.FullExtent
C# 
public Envelope FullExtent {get;}

Example

This example sets the map to the FullExtent, if FullExtent is not null (Nothing). The code assumes an existing MapView object.
C#Copy Code
if (mapView.FullExtent != null) {
 
    mapView.Extent = mapView.FullExtent;
 
}
Visual BasicCopy Code
If Not IsNothing(mapView.FullExtent) Then
 
    mapView.Extent = mapView.FullExtent
 
End If

Remarks

This envelope is the extent of all layers in the map. It is calculated from the envelopes of each layer as obtained from the ArcIMS server. If the layer extents are not retrieved from the server upon initialization of the MapServer on which the MapView is based, then FullExtent will be null (Nothing). To ensure retrieval of layer extents, set the LoadLayerExtents argument/property to true in the InitializationParameters used with MapService .

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2011 All Rights Reserved.