ElementCollection
Inheritance: java.lang.Object
All Implemented Interfaces: com.aspose.ms.System.Collections.Generic.IGenericEnumerable
public class ElementCollection implements System.Collections.Generic.IGenericEnumerable<Element>
Collection of base logical structure elements.
Methods
| Method | Description |
|---|---|
| getCount() | Count of elements. |
| remove(Element item) | Remove item from collection. |
| iterator() | Returns an enumerator that iterates through the collection. |
| get_Item(int index) | Gets Element by index. |
getCount()
public final int getCount()
Count of elements.
Returns: int - int value
remove(Element item)
public final boolean remove(Element item)
Remove item from collection.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| item | Element | Item to remove. |
Returns: boolean - boolean value
iterator()
public final System.Collections.Generic.IGenericEnumerator<Element> iterator()
Returns an enumerator that iterates through the collection.
Returns: com.aspose.ms.System.Collections.Generic.IGenericEnumerator<com.aspose.pdf.Element> - Enumerator of elements of type Element.
get_Item(int index)
public final Element get_Item(int index)
Gets Element by index.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| index | int | Index of element. |
Returns: Element - Retreived element.