SetMapLimits

 

The SetMapLimits method sets the map limits.

 

Syntax

object.SetMapLimits( Method, Left, Top, Right, Bottom, RemoveSelArea, UnitType )

 

Parameter

Type

Description

Method

MVClipLimitMethod

required; clipping method

Left

Double

optional; in page units when the Method is mvClipRectLimits

Top

Double

optional; in page units when the Method is mvClipRectLimits

Right

Double

optional; in page units when the Method is mvClipRectLimits

Bottom

Double

optional; in page units when the Method is mvClipRectLimits

RemoveSelArea

Boolean

optional; true to remove the selected area when the Method is mvClipSelAreaLimits

UnitType

MVCoordDisplayUnits

optional; limit unit type

 

Remarks

If the Method is mvClipDataLimits or mvClipSelAreaLimits, Left, Top, Right and Bottom are ignored. If the Method is mvClipSelAreaLimits, make sure there is a single selected area on the map that is not a complex area.

 

Example

This example sets rectangular map limits.

 

Plot.SetMapLimits(Method:= mvClipRectLimits, Left:=3, Top:=7, _

Right:=10, Bottom:=3, RemoveSelArea:=False)

 

Used by: PlotDocument object