Gets or sets the full extent.
Syntax
Visual Basic (Declaration) | |
---|
Public Property FullExtent As Envelope |
Visual Basic (Usage) | Copy Code |
---|
Dim instance As FeatureLayer
Dim value As Envelope
instance.FullExtent = value
value = instance.FullExtent |
C# | |
---|
public Envelope FullExtent {get; set;} |
Example
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;
ESRI.ArcGIS.ADF.IMS.Carto.Layer.FeatureLayer fLayer =
(ESRI.ArcGIS.ADF.IMS.Carto.Layer.FeatureLayer)mapView.Layers[1];
Envelope fullExtent = fLayer.FullExtent;
mapView.Extent = fullExtent; |
Visual Basic | Copy Code |
---|
Dim lyrColl As LayerCollection = mapView.Layers
Dim fLayer As ESRI.ArcGIS.ADF.IMS.Carto.Layer.FeatureLayer = _
CType(mapView.Layers(1), ESRI.ArcGIS.ADF.IMS.Carto.Layer.FeatureLayer)
Envelope fullExtent = fLayer.FullExtent
mapView.Extent = fullExtent |
Remarks
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