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


IMapControlDefault.Extent Property (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Controls)  

IMapControlDefault.Extent Property

Current extent of the Map in map units.

[Visual Basic .NET]
Public Property Extent As IEnvelope
[C#]
public IEnvelope Extent {get; set;}
[C++]
HRESULT get_Extent(
  IEnvelope** Extent
);
[C++]
HRESULT put_Extent(
  IEnvelope* Extent
);
[C++]

Parameters Extent [out, retval]
Extent is a parameter of type IEnvelope Extent [in]
Extent is a parameter of type IEnvelope

Product Availability

Available with ArcGIS Engine.

Description

Returns or sets a new envelope which is represents the visible extent of the Map. Setting the Extent property will automatically cause the MapControl to refresh its display.

See Also

IMapControlDefault Interface

.NET Samples

Geoevents in a MapControl (Code Files: GeoEvents)