GetLayers

Usage                  Integer GetLayers(Layers As Integer, MaxLayer As Integer)

Description         Retrieves the viewable layer numbers. Almost all of the annotation methods are operating on the viewable layers. The layer numbering is 0-based and the default layer is 0 (zero).

Parameters         Layers                    Integer             The first item of an array, which will receive the Integer layer numbers

                             MaxLayer              Integer             The maximum number of data items (layers) to receive (based on the size of your array)

Return value      The number of Integer data items (layers) actually copied into the array. Return value 0 (zero) indicates that all of the layers used in the annotation are visible and editable (this is the default).

Programming Notes        See SetLayers for more information.

                                          If you don’t want to use parameters as references in the parameter list you can use the following methods for handling viewable layers: SetLayerNumberAt, GetLayerNumberAt, SetNumberOfLayers, SetLayersExt. If you use C#, JavaScript, etc you should use these methods for layers.