Returns or sets the spatial extent of the current map view.
Read-write property
object.Extent = [ value ] |
- ScaleRectangle Example
- ShowColor Example
- TrackRectangle Example
Zooms in to the extent defined by the Rectangle returned by the TrackRectangle method.
TrackRectangle Example (VBScript) | Copy Code |
---|---|
Sub ZoomByTrackRect Dim objRect Set objRect = Application.Map.TrackRectangle If Not objRect Is Nothing Then Application.Map.Extent = objRect Set objRect = Nothing End If End Sub |