ESRI.ArcGIS.Mobile
SetExtent Method
See Also  Send Feedback
ESRI.ArcGIS.Mobile Namespace > Map Class : SetExtent Method

extent
Sets the visible rectangular extent of the map.

Syntax

Visual Basic (Declaration) 
Public Sub SetExtent( _
   ByVal extent As Envelope _
) 
C# 
public void SetExtent( 
   Envelope extent
)

Parameters

extent

Exceptions

ExceptionDescription
ArgumentNullExceptionNull extent.

Remarks

SetExtent method will mark the map control as dirty, and will trigger the ExtentChanged event.

For differences between map extent, view extent, and rotated extent, refer to the GetViewExtent method.

Requirements

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