DwfLayersList
All Implemented Interfaces: com.aspose.ms.System.Collections.Generic.IGenericCollection, com.aspose.ms.System.Collections.Generic.IGenericEnumerable
Layer tables list
Methods
| Method | Description |
|---|---|
| iterator() | Enumeration of layers. |
| getLayerByName(String name) | Gets first layer by name. |
| getLayersByName(String name) | Gets layer by name. |
| getLayersByNames(String[] layersNames) | Gets layers by names. |
| getLayersNames() | Gets the layers names. |
| addItem(DwfWhipLayer item) | Adds an item to the DwfLayersList |
| clear() | Removes all items from the DwfLayersList |
| containsItem(DwfWhipLayer item) | Determines whether the DwfLayersList contains a specific value. |
| copyToTArray(DwfWhipLayer[] array, int arrayIndex) | Copies the elements of DwfLayersList to an System.Array, starting at a particular System.Array index. |
| removeItem(DwfWhipLayer item) | Removes the first occurrence of a specific object from the DwfLayersList. |
| size() | Gets the number of elements contained in the DwfLayersList. |
| isReadOnly() | Gets a value indicating whether the DwfLayersList is read-only. |
iterator()
public com.aspose.ms.System.Collections.Generic.IGenericEnumerator<DwfWhipLayer> iterator()
Enumeration of layers.
Returns: com.aspose.ms.System.Collections.Generic.IGenericEnumerator
getLayerByName(String name)
public DwfWhipLayer getLayerByName(String name)
Gets first layer by name.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| name | String | The name of layer. |
Returns: DwfWhipLayer - The layer or null if layer with “name” does not exist in the collection DwfWhipLayer
getLayersByName(String name)
public com.aspose.ms.System.Collections.ObjectModel.ReadOnlyCollection<DwfWhipLayer> getLayersByName(String name)
Gets layer by name.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| name | String | The name of layer. |
Returns: com.aspose.ms.System.Collections.ObjectModel.ReadOnlyCollection
getLayersByNames(String[] layersNames)
public List<DwfWhipLayer> getLayersByNames(String[] layersNames)
Gets layers by names.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| layersNames | String[] | Array names of layers. |
Returns: List
getLayersNames()
public List<String> getLayersNames()
Gets the layers names.
Returns: List
addItem(DwfWhipLayer item)
public void addItem(DwfWhipLayer item)
Adds an item to the DwfLayersList
Parameters:
| Parameter | Type | Description |
|---|---|---|
| item | DwfWhipLayer | The object to add to the collection |
clear()
public void clear()
Removes all items from the DwfLayersList
containsItem(DwfWhipLayer item)
public boolean containsItem(DwfWhipLayer item)
Determines whether the DwfLayersList contains a specific value.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| item | DwfWhipLayer | the object to locate in the collection |
Returns: boolean - true if item is found in the collection otherwise false
copyToTArray(DwfWhipLayer[] array, int arrayIndex)
public void copyToTArray(DwfWhipLayer[] array, int arrayIndex)
Copies the elements of DwfLayersList to an System.Array, starting at a particular System.Array index.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| array | DwfWhipLayer[] | the one-dimensional array that is the destination of the elements copied |
| arrayIndex | int | the zero-based index in array at which copying begins |
removeItem(DwfWhipLayer item)
public boolean removeItem(DwfWhipLayer item)
Removes the first occurrence of a specific object from the DwfLayersList.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| item | DwfWhipLayer | item to remove from collection |
Returns: boolean - Result of removing
size()
public int size()
Gets the number of elements contained in the DwfLayersList.
Returns: int
isReadOnly()
public boolean isReadOnly()
Gets a value indicating whether the DwfLayersList is read-only.
Returns: boolean