DefineRegionArea

 

The DefineRegionArea method defines a region with an area. Returns an Area object.

 

Syntax

object.DefineRegionArea( Vertices, UnitType )

 

Parameter

Type

Description

Vertices

Array of Doubles

required; array containing each vertex in the area

UnitType

MVCoordDisplayUnits

optional; unit type, default is mvCoordDisplayUnitPageUnits

 

Remarks

VB users can use ReDim to set the array size to the used size if necessary or use DefineRegionArea2. See Coordinate Arrays for more information about creating arrays in MapViewer.

 

Example

This example creates a region defined by an area.

 

Dim Coordinates(23) As Double

Coordinates(0) = 3.44: Coordinates(1) = 4.06

Coordinates(2) = 1.10: Coordinates(3) = 6.39

Coordinates(4) = 3.44: Coordinates(5) = 8.73

Coordinates(6) = 5.75: Coordinates(7) = 6.39

Coordinates(8) = 3.36: Coordinates(9) = 8.07

Coordinates(10) = 5.01: Coordinates(11) = 6.42

Coordinates(12) = 3.36: Coordinates(13) = 4.75

Coordinates(14) = 1.71: Coordinates(15) = 6.42

Coordinates(16) = 1.71: Coordinates(17) = 8.07

Coordinates(18) = 5.01: Coordinates(19) = 8.07

Coordinates(20) = 5.01: Coordinates(21) = 4.75

Coordinates(22) = 1.71: Coordinates(23) = 4.75

 

MapShapes.DefineRegionArea(Coordinates)

 

Used by: Shapes collection