getLayer

Get a layer handle.
getLayer([in] int idx, [out, retval] LONG *layerHandle)
This function returns an opaque handle for the specified layer. The handle can then be passed to the other layer functions.

Layers are numbered 0 through n-1 (where n is the value returned by getNumLayers).

VB6:
n = viewer.getNumLayers For i = 0 To n-1 layer = viewer.getLayer(i) name = viewer.getLayerName(layer) visible = viewer.getLayerVisibility(layer) ' ... add a list entry using name and visible ... Next i
getNumLayers
getLayerName
getLayerVisibility
setLayerVisibility
getLayerViewState
getLayerPrintState