ArcPad Scripting Object Model
Extent Property
See Also  Example  Send comments on this topic.
Map Object : Extent Property

Glossary Item Box

Description

Returns or sets the spatial extent of the current map view.

Property type

Read-write property

Syntax

object.Extent = [ value ]

Return Type

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

See Also

© 2013 All Rights Reserved.