Get a region handle.
getRegion([in] int idx, [out, retval] LONG *regionHandle)
This function returns the handle for the idxth region. idx must be between 0 and n-1, where n is the value of numRegions.
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