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


ILayer.AreaOfInterest Property (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (Carto)  

ILayer.AreaOfInterest Property

The default area of interest for the layer.

[Visual Basic .NET]
Public ReadOnly Property AreaOfInterest As IEnvelope
[C#]
public IEnvelope AreaOfInterest {get;}
[C++]
HRESULT get_AreaOfInterest(
  IEnvelope** aoi
);
[C++]

Parameters aoi [out, retval]
aoi is a parameter of type IEnvelope**

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

Returns the spatial-referenced extent of the layer.

See Also

ILayer Interface

.NET Snippets

Zoom to Globe Layer

.NET Samples

Custom UI elements using add-ins (Code Files: ZoomToLayerButton) | Create a command by inheriting from BaseCommand (Code Files: ZoomToLayer) | Create a custom selection extension by extending ArcObjects (Code Files: ZoomToLayerMultiItem)

.NET Related Topics

Create a command by inheriting from BaseCommand | How to create dynamic menu commands using a MultiItem | Persisting cache information for use in dynamic display