ViewAPI.setExtent

 

long setExtent(string x1, string y1, string x2, string y2)

This method sets the portion of the map displayed in the view to the rectangle defined by using (x1, y1) as the SW corner and (x2, y2) as the NE corner.  The coordinates must be in the current Exchange Coordinate System, unless the map type is NRMR (See Map Types).

The method return 0 upon success, and returns an error code if the given coordinates are invalid.