ESRI.ArcGIS.ADF.IMS | |
FullExtent Property | |
See Also Example |
ESRI.ArcGIS.ADF.IMS.Carto.Layer Namespace > FeatureLayer Class : FullExtent Property |
Visual Basic (Declaration) | |
---|---|
Public Property FullExtent As Envelope |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public Envelope FullExtent {get; set;} |
The following example retrieves the FullExtent of a layer in the map, and zooms the
map to the extent of this layer.
C# | Copy Code |
---|---|
LayerCollection lyrColl = mapView.Layers; |
Visual Basic | Copy Code |
---|---|
Dim lyrColl As LayerCollection = mapView.Layers |
This is the bounding rectangle around all features in the map layer. It is retrieved during creation of the MapService on which the MapView or LayoutView is based. If LoadLayerExtents is false in the ImageDescriptor used to initialize the MapService, then no extents are retrieved, and FullExtent will be null (Nothing).
It is possible to set FullExtent, in which case the envelope is not necessarily the bounding envelope for all features.