getRegionInfo

Get the parameters of a region.
getRegionInfo([in] LONG regionHandle, [out] int *pageNum, [out] double *x0, [out] double *y0, [out] double *x1, [out] double *y1, [out] LONG *color, [out] LONG *selectColor, [out] BSTR *label)
This function returns the parameters of the specified region.

The returned values are the same ones that were passed to addRegion, except that the coordinates may have changed if the user has resized the region.

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
addRegion