The ReverseIslandsLakes method reverses the selected islands and lakes of area objects.
Syntax
object.ReverseIslandsLakes
Example
This example draws an area and reverses the vertices from a counterclockwise direction to a clockwise direction.
'Deselect any selected objects
Selection.DeselectAll
'Create an area
Dim AreaCCW As Object
Dim Coordinates(5) As Double
Coordinates(0) = 4: Coordinates(1) = 1
Coordinates(2) = 7: Coordinates(3) = 3
Coordinates(4) = 2: Coordinates(5) = 6
Set AreaCCW = MapShapes.AddPolygon(bSpline:=False, Vertices:=Coordinates)
'Select the area
AreaCCW.Select
'Reverse the area vertex direction from
' CCW (counterclockwise) to CW (clockwise)
Selection.ReverseIslandsLakes
Used by: Selection collection