numRegions

Get the current number of regions.
[read-only property] numRegions([out, retval] int *n)
This property contains the current number of highlighted regions.
VB6:
Dim page As Long Dim x0 As Double, y0 As Double, x1 As Double, y1 As Double Dim color As Long, selectColor As Long Dim label As String Dim region As Long For i = 0 To viewer.numRegions - 1 region = viewer.getRegion(i) viewer.getRegionInfo region, page, x0, y0, x1, y1, color, selectColor, label ' do something with the region ... Next i
getRegion