Usage Integer GetLayerNumber
Description Returns the number of viewable layers (the number of entries in the layer list).
Parameters None
Return value The number of viewable layers. Return value 0 (zero) indicates that all of the layers used in the annotation are visible and editable (this is the default).
Programming Notes You can use this method in conjunction with the GetLayers method. First call the GetLayerNumber to retrieve the number of Integer data items in the array to allocate, then pass the array to the GetLayers with the exact number of retrievable layers. If the GetLayerNumber returns 0 (zero), you don't need to call the second method, because all of the layers are visible.