Packages

 

com.aspose.cad.fileformats.dwf

Class DwfLayersList

  • All Implemented Interfaces:
    com.aspose.ms.System.Collections.Generic.IGenericCollection<DwfWhipLayer>, com.aspose.ms.System.Collections.Generic.IGenericEnumerable<DwfWhipLayer>, com.aspose.ms.System.Collections.IEnumerable<DwfWhipLayer>, Iterable<DwfWhipLayer>


    public final class DwfLayersList
    extends Object
    implements com.aspose.ms.System.Collections.Generic.IGenericCollection<DwfWhipLayer>, com.aspose.ms.System.Collections.Generic.IGenericEnumerable<DwfWhipLayer>

    Layer tables list

    • Method Detail

      • iterator

        public com.aspose.ms.System.Collections.Generic.IGenericEnumerator<DwfWhipLayer> iterator()

        Enumeration of layers.

        Specified by:
        iterator in interface com.aspose.ms.System.Collections.Generic.IGenericEnumerable<DwfWhipLayer>
        Specified by:
        iterator in interface com.aspose.ms.System.Collections.IEnumerable<DwfWhipLayer>
        Specified by:
        iterator in interface Iterable<DwfWhipLayer>
        Returns:
        Enumerator of layersDwfWhipLayer
      • getLayerByName

        public DwfWhipLayer getLayerByName(String name)

        Gets first layer by name.

        Parameters:
        name - The name of layer.
        Returns:
        The layer or null if layer with "name" does not exist in the collectionDwfWhipLayer
      • getLayersByName

        public com.aspose.ms.System.Collections.ObjectModel.ReadOnlyCollection<DwfWhipLayer> getLayersByName(String name)

        Gets layer by name.

        Parameters:
        name - The name of layer.
        Returns:
        The layers collection ofDwfWhipLayer
      • getLayersByNames

        public List<DwfWhipLayer> getLayersByNames(String[] layersNames)

        Gets layers by names.

        Parameters:
        layersNames - Array names of layers.
        Returns:
        The list of DwfWhipLayerlayer objects
      • getLayersNames

        public List<String> getLayersNames()

        Gets the layers names.

        Returns:
        The list of stringlayers names
      • addItem

        public void addItem(DwfWhipLayer item)

        Adds an item to the DwfLayersList

        Specified by:
        addItem in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<DwfWhipLayer>
        Parameters:
        item - The object to add to the collection
      • clear

        public void clear()

        Removes all items from the DwfLayersList

        Specified by:
        clear in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<DwfWhipLayer>
      • containsItem

        public boolean containsItem(DwfWhipLayer item)

        Determines whether the DwfLayersList contains a specific value.

        Specified by:
        containsItem in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<DwfWhipLayer>
        Parameters:
        item - the object to locate in the collection
        Returns:
        true if item is found in the collection otherwise false
      • copyToTArray

        public void copyToTArray(DwfWhipLayer[] array,
                                 int arrayIndex)

        Copies the elements of DwfLayersList to an System.Array, starting at a particular System.Array index.

        Specified by:
        copyToTArray in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<DwfWhipLayer>
        Parameters:
        array - the one-dimensional array that is the destination of the elements copied
        arrayIndex - the zero-based index in array at which copying begins
      • removeItem

        public boolean removeItem(DwfWhipLayer item)

        Removes the first occurrence of a specific object from the DwfLayersList.

        Specified by:
        removeItem in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<DwfWhipLayer>
        Parameters:
        item - item to remove from collection
        Returns:
        Result of removing
      • size

        public int size()

        Gets the number of elements contained in the DwfLayersList.

        Specified by:
        size in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<DwfWhipLayer>
      • isReadOnly

        public boolean isReadOnly()

        Gets a value indicating whether the DwfLayersList is read-only.

        Specified by:
        isReadOnly in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<DwfWhipLayer>