ElementList
Inheritance: java.lang.Object
All Implemented Interfaces: com.aspose.ms.System.Collections.Generic.IGenericEnumerable
public abstract class ElementList implements System.Collections.Generic.IGenericEnumerable<Element>
Represents an ordered collection of elements.
Methods
Method | Description |
---|---|
getCount() | Gets the number of elements in the ElementList. |
item(int index) | Retrieves a element at the given index. |
get_Item(int index) | |
iterator() | Gets an enumerator that iterates through the collection of elements. |
addElement(Element element) | |
addElement(Element element, boolean updatePdfDictionary) | |
removeElement(Element element) |
getCount()
public abstract int getCount()
Gets the number of elements in the ElementList.
Returns: int - int value
item(int index)
public abstract Element item(int index)
Retrieves a element at the given index.
Parameters:
Parameter | Type | Description |
---|---|---|
index | int | The index into the list of elements. |
Returns: Element - The /Aspose.Pdf.LogicalStructure.Element with the specified index in the collection. If index is greater than or equal to the number of elements in the list, this returns null.
get_Item(int index)
public Element get_Item(int index)
Parameters:
Parameter | Type | Description |
---|---|---|
index | int |
Returns: Element
iterator()
public abstract System.Collections.Generic.IGenericEnumerator<Element> iterator()
Gets an enumerator that iterates through the collection of elements.
Returns: com.aspose.ms.System.Collections.Generic.IGenericEnumerator<com.aspose.pdf.tagged.logicalstructure.elements.Element> - An enumerator used to iterate through the collection of elements.
addElement(Element element)
public void addElement(Element element)
Parameters:
Parameter | Type | Description |
---|---|---|
element | Element |
addElement(Element element, boolean updatePdfDictionary)
public abstract void addElement(Element element, boolean updatePdfDictionary)
Parameters:
Parameter | Type | Description |
---|---|---|
element | Element | |
updatePdfDictionary | boolean |
removeElement(Element element)
public abstract void removeElement(Element element)
Parameters:
Parameter | Type | Description |
---|---|---|
element | Element |